Skip operation until after early exit test
This commit is contained in:
parent
cd266984ac
commit
5848502d97
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue