Changed Bake to MakePermanent

This commit is contained in:
Lars Brubaker 2018-04-09 11:57:45 -07:00
parent 440cfbdc04
commit 7590b179b6
6 changed files with 8 additions and 8 deletions

View file

@ -173,17 +173,17 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
};
toolbar.AddChild(editButton);
// put in a bake button
var icon = AggContext.StaticData.LoadIcon("bake.png", 16, 16).SetPreMultiply();
// put in a make permanent button
var icon = AggContext.StaticData.LoadIcon("permanent.png", 16, 16).SetPreMultiply();
var bakeButton = new IconButton(icon, theme)
{
Margin = theme.ButtonSpacing,
ToolTipText = "Bake operation into parts".Localize()
ToolTipText = "Make operation permanent".Localize()
};
bakeButton.Click += (s, e) =>
{
scene.SelectedItem = null;
this.item.Bake();
this.item.MakePermanent();
};
scene.SelectionChanged += (s, e) => bakeButton.Enabled = scene.SelectedItem?.CanBake == true;
toolbar.AddChild(bakeButton);

View file

@ -60,7 +60,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
base.Remove();
}
public override void Bake()
public override void MakePermanent()
{
var meshWrappers = this.Descendants().Where(o => o.OwnerID == this.ID).ToList();
@ -83,7 +83,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow.View3D
}
}
base.Bake();
base.MakePermanent();
}
public static void WrapSelection(MeshWrapperObject3D meshWrapper, InteractiveScene scene)