Made Print Wrappers track file changes better

Fixed a bug with 3D panel not closing out from editing correctly.
Fixed a bug with thumbnails not rebuilding under some update conditions.
This commit is contained in:
Lars Brubaker 2015-09-04 09:55:40 -07:00
parent a98e29b22e
commit a82490c70a
7 changed files with 128 additions and 75 deletions

View file

@ -369,6 +369,10 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
buttonRightPanelHolder.Name = "buttonRightPanelHolder";
centerPartPreviewAndControls.AddChild(buttonRightPanelHolder);
buttonRightPanelHolder.AddChild(buttonRightPanel);
buttonRightPanel.VisibleChanged += (sender, e) =>
{
buttonRightPanelHolder.Visible = buttonRightPanel.Visible;
};
viewControls3D = new ViewControls3D(meshViewerWidget);
@ -1869,7 +1873,6 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
MeshOutputSettings outputInfo = new MeshOutputSettings(MeshOutputSettings.OutputType.Binary, metaData);
MeshFileIo.Save(asynchMeshGroups, printItemWrapper.FileLocation, outputInfo);
printItemWrapper.OnFileHasChanged();
if (returnInfo != null
&& returnInfo.destinationLibraryProvider != null)