prevent crash in draw

This commit is contained in:
Lars Brubaker 2021-03-08 17:41:11 -08:00
parent 6cd84f7de4
commit 3c9a9d75f3

View file

@ -234,7 +234,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
IntersectInfo info = hitPlane.GetClosestIntersection(mouseEvent3D.MouseRay);
if (info != null
&& selectedItem != null)
&& selectedItem != null
&& mouseDownSelectedBounds != null)
{
var delta = info.HitPosition.Z - initialHitPosition.Z;