diff --git a/MatterControlLib/DesignTools/Obsolete/FitToBoundsObject3D.cs b/MatterControlLib/DesignTools/Obsolete/FitToBoundsObject3D.cs index 0748062a8..0be9ec923 100644 --- a/MatterControlLib/DesignTools/Obsolete/FitToBoundsObject3D.cs +++ b/MatterControlLib/DesignTools/Obsolete/FitToBoundsObject3D.cs @@ -168,6 +168,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations override public Task Rebuild() { this.DebugDepth("Rebuild"); + using (RebuildLock()) { using (new CenterAndHeightMantainer(this)) diff --git a/MatterControlLib/DesignTools/Operations/ScaleObject3D.cs b/MatterControlLib/DesignTools/Operations/ScaleObject3D.cs index 0ff416c38..029f71cf2 100644 --- a/MatterControlLib/DesignTools/Operations/ScaleObject3D.cs +++ b/MatterControlLib/DesignTools/Operations/ScaleObject3D.cs @@ -208,6 +208,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations public override Task Rebuild() { + this.DebugDepth("Rebuild"); + using (RebuildLock()) { // set the matrix for the transform object @@ -276,6 +278,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations // scale y and z to match ScaleRatio[1] = ScaleRatio[0]; ScaleRatio[2] = ScaleRatio[0]; + Rebuild(); // and invalidate the other properties Invalidate(new InvalidateArgs(null, InvalidateType.Properties)); } @@ -287,6 +290,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations // scale y and z to match ScaleRatio[0] = ScaleRatio[1]; ScaleRatio[2] = ScaleRatio[1]; + Rebuild(); // and invalidate the other properties Invalidate(new InvalidateArgs(null, InvalidateType.Properties)); } @@ -298,6 +302,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations // scale y and z to match ScaleRatio[0] = ScaleRatio[2]; ScaleRatio[1] = ScaleRatio[2]; + Rebuild(); // and invalidate the other properties Invalidate(new InvalidateArgs(null, InvalidateType.Properties)); } diff --git a/MatterControlLib/DesignTools/Primitives/CubeObject3D.cs b/MatterControlLib/DesignTools/Primitives/CubeObject3D.cs index 1e6c32f20..4ac2b4250 100644 --- a/MatterControlLib/DesignTools/Primitives/CubeObject3D.cs +++ b/MatterControlLib/DesignTools/Primitives/CubeObject3D.cs @@ -83,6 +83,7 @@ namespace MatterHackers.MatterControl.DesignTools public override Task Rebuild() { this.DebugDepth("Rebuild"); + using (RebuildLock()) { using (new CenterAndHeightMantainer(this))