Hide the shadow while scaling

This commit is contained in:
LarsBrubaker 2021-04-15 07:33:08 -07:00 committed by Lars Brubaker
parent 8a5c7fb6b2
commit b3af3cd51f
3 changed files with 7 additions and 1 deletions

View file

@ -323,6 +323,8 @@ namespace MatterHackers.Plugins.EditorTools
{
sizeOnMouseDown = new Vector2(widthDepthItem.Width, widthDepthItem.Depth);
}
Object3DControlContext.Scene.ShowSelectionShadow = false;
}
base.OnMouseDown(mouseEvent3D);
@ -417,6 +419,7 @@ namespace MatterHackers.Plugins.EditorTools
&& (widthDepthItem.Width != sizeOnMouseDown.X || widthDepthItem.Depth != sizeOnMouseDown.Y))
{
SetWidthDepthUndo(new Vector2(widthDepthItem.Width, widthDepthItem.Depth), sizeOnMouseDown);
Object3DControlContext.Scene.ShowSelectionShadow = true;
}
base.OnMouseUp(mouseEvent3D);