From c7ec4eef9cb1992ac73b16f87c1aec2876d64280 Mon Sep 17 00:00:00 2001 From: Lars Brubaker Date: Wed, 10 Jan 2018 16:26:06 -0800 Subject: [PATCH] Holed bottom height on scale Better display of z height info (show extra decimal when required) --- PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs | 2 +- PartPreviewWindow/View3D/SideBar/ScaleControl.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs b/PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs index 4c4bee1b3..c529bbe99 100644 --- a/PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs +++ b/PartPreviewWindow/View3D/Gui3D/MoveInZControl.cs @@ -90,7 +90,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow return false; } , - GetDisplayString = (value) => "{0:0.0}mm".FormatWith(value) + GetDisplayString = (value) => "{0:0.0#}mm".FormatWith(value) }; zHeightDisplayInfo.VisibleChanged += (s, e) => diff --git a/PartPreviewWindow/View3D/SideBar/ScaleControl.cs b/PartPreviewWindow/View3D/SideBar/ScaleControl.cs index 05bdef6be..0fcbd79c7 100644 --- a/PartPreviewWindow/View3D/SideBar/ScaleControl.cs +++ b/PartPreviewWindow/View3D/SideBar/ScaleControl.cs @@ -234,7 +234,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow // keep the bottom where it was AxisAlignedBoundingBox scaledBounds = selectedItem.GetAxisAlignedBoundingBox(Matrix4X4.Identity); - PlatingHelper.PlaceMeshAtHeight(selectedItem, scaledBounds.minXYZ.Z); + PlatingHelper.PlaceMeshAtHeight(selectedItem, originalMeshBounds.minXYZ.Z); Invalidate(); }