From 0c53db05b6e12f4c60c83182fd65afde0df1ff5f Mon Sep 17 00:00:00 2001 From: LarsBrubaker Date: Sat, 23 May 2020 17:05:10 -0700 Subject: [PATCH] fixed crash --- .../DesignTools/EditorTools/ScaleControls/ScaleCornerControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MatterControlLib/DesignTools/EditorTools/ScaleControls/ScaleCornerControl.cs b/MatterControlLib/DesignTools/EditorTools/ScaleControls/ScaleCornerControl.cs index 95a0abfe9..89a94fbab 100644 --- a/MatterControlLib/DesignTools/EditorTools/ScaleControls/ScaleCornerControl.cs +++ b/MatterControlLib/DesignTools/EditorTools/ScaleControls/ScaleCornerControl.cs @@ -268,7 +268,7 @@ namespace MatterHackers.Plugins.EditorTools yValueDisplayInfo.Visible = false; } - if (MouseDownOnControl) + if (MouseDownOnControl && hitPlane != null) { IntersectInfo info = hitPlane.GetClosestIntersection(mouseEvent3D.MouseRay);