This commit is contained in:
John Lewin 2018-04-13 08:29:29 -07:00
parent 1eb125eb97
commit e7bf28d770
2 changed files with 2 additions and 4 deletions

View file

@ -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);
}