Changed Bake to MakePermanent
This commit is contained in:
parent
440cfbdc04
commit
7590b179b6
6 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue