Making the description draggable

This commit is contained in:
Lars Brubaker 2021-04-21 18:07:44 -07:00
parent c9353b125d
commit e3da5e84c1
12 changed files with 196 additions and 118 deletions

View file

@ -229,7 +229,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
zHeightDisplayInfo.Visible = false;
}
if (MouseDownOnControl)
if (MouseDownOnControl && hitPlane != null)
{
IntersectInfo info = hitPlane.GetClosestIntersection(mouseEvent3D.MouseRay);

View file

@ -350,7 +350,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
base.OnMouseDown(mouseEvent);
Ray ray = this.World.GetRayForLocalBounds(mouseEvent.Position);
var ray = this.World.GetRayForLocalBounds(mouseEvent.Position);
if (this.Scene.SelectedItem != null
&& !SuppressObject3DControls
&& FindHitObject3DControl(ray, out mouseDownObject3DControl, out IntersectInfo info))