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

@ -266,6 +266,8 @@ namespace MatterHackers.Plugins.EditorTools
{
heightOnMouseDown = heightObject.Height;
}
Object3DControlContext.Scene.ShowSelectionShadow = false;
}
base.OnMouseDown(mouseEvent3D);
@ -342,6 +344,7 @@ namespace MatterHackers.Plugins.EditorTools
&& heightObject.Height != heightOnMouseDown)
{
SetHeightUndo(heightObject.Height, heightOnMouseDown);
Object3DControlContext.Scene.ShowSelectionShadow = true;
}
base.OnMouseUp(mouseEvent3D);

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);

@ -1 +1 @@
Subproject commit 3d28d3900588a616f1a20ee64c2dc2863fa678c5
Subproject commit d86aca05037188d3a43909ee1042327a461f9ff2