Making the description draggable
This commit is contained in:
parent
c9353b125d
commit
e3da5e84c1
12 changed files with 196 additions and 118 deletions
|
|
@ -229,7 +229,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
zHeightDisplayInfo.Visible = false;
|
||||
}
|
||||
|
||||
if (MouseDownOnControl)
|
||||
if (MouseDownOnControl && hitPlane != null)
|
||||
{
|
||||
IntersectInfo info = hitPlane.GetClosestIntersection(mouseEvent3D.MouseRay);
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue