Simplify
This commit is contained in:
parent
1eb125eb97
commit
e7bf28d770
2 changed files with 2 additions and 4 deletions
|
|
@ -124,8 +124,7 @@ namespace MatterHackers.GCodeVisualizer
|
|||
}
|
||||
|
||||
// render the part using opengl
|
||||
Graphics2DOpenGL graphics2DGl = graphics2D as Graphics2DOpenGL;
|
||||
if (graphics2DGl != null)
|
||||
if (graphics2D is Graphics2DOpenGL graphics2DGl)
|
||||
{
|
||||
graphics2DGl.DrawAACircle(position, radius, retractionColor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue