Skip operation until after early exit test

This commit is contained in:
John Lewin 2019-05-18 13:18:28 -07:00 committed by jlewin
parent cd266984ac
commit 5848502d97

View file

@ -1445,9 +1445,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
public void DragSelectedObject(IObject3D selectedItem, Vector2 localMousePosition)
{
Vector2 meshViewerWidgetScreenPosition = this.InteractionLayer.TransformFromParentSpace(this, localMousePosition);
Ray ray = sceneContext.World.GetRayForLocalBounds(meshViewerWidgetScreenPosition);
if (!PositionWithinLocalBounds(localMousePosition.X, localMousePosition.Y))
{
Matrix4X4 totalTransform = Matrix4X4.CreateTranslation(new Vector3(-CurrentSelectInfo.LastMoveDelta));
@ -1457,6 +1454,9 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
return;
}
Vector2 meshViewerWidgetScreenPosition = this.InteractionLayer.TransformFromParentSpace(this, localMousePosition);
Ray ray = sceneContext.World.GetRayForLocalBounds(meshViewerWidgetScreenPosition);
IntersectInfo info = CurrentSelectInfo.HitPlane.GetClosestIntersection(ray);
if (info != null)
{