Holed bottom height on scale

Better display of z height info (show extra decimal when required)
This commit is contained in:
Lars Brubaker 2018-01-10 16:26:06 -08:00
parent 0deb11e6e7
commit c7ec4eef9c
2 changed files with 2 additions and 2 deletions

View file

@ -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) =>

View file

@ -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();
}