Simplify
This commit is contained in:
parent
1eb125eb97
commit
e7bf28d770
2 changed files with 2 additions and 4 deletions
|
|
@ -110,8 +110,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
{
|
||||
double gridLineWidths = 0.2 * layerScale;
|
||||
|
||||
Graphics2DOpenGL graphics2DGl = graphics2D as Graphics2DOpenGL;
|
||||
if (graphics2DGl != null)
|
||||
if (graphics2D is Graphics2DOpenGL graphics2DGl)
|
||||
{
|
||||
GlRenderGrid(graphics2DGl, transform, gridLineWidths);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue