Fixing material settings
This commit is contained in:
parent
10a2057db6
commit
40e729f05f
18 changed files with 325 additions and 56 deletions
|
|
@ -45,6 +45,7 @@ using MatterHackers.MatterControl.DesignTools;
|
|||
using MatterHackers.MatterControl.DesignTools.Operations;
|
||||
using MatterHackers.MatterControl.PartPreviewWindow;
|
||||
using MatterHackers.MatterControl.PartPreviewWindow.View3D;
|
||||
using MatterHackers.MatterControl.SettingsManagement;
|
||||
using MatterHackers.PolygonMesh;
|
||||
using MatterHackers.VectorMath;
|
||||
|
||||
|
|
@ -856,6 +857,7 @@ namespace MatterHackers.MatterControl
|
|||
Visible = OperationGroup.GetVisible("Path", false),
|
||||
Operations = new List<SceneOperation>()
|
||||
{
|
||||
AddSliceSettingsOperation(),
|
||||
ToggleSupportOperation(),
|
||||
ToggleWipeTowerOperation(),
|
||||
}
|
||||
|
|
@ -1434,6 +1436,33 @@ namespace MatterHackers.MatterControl
|
|||
};
|
||||
}
|
||||
|
||||
private static SceneOperation AddSliceSettingsOperation()
|
||||
{
|
||||
var isExperimental = OemSettings.Instance.WindowTitleExtra == "Experimental";
|
||||
|
||||
#if !DEBUG
|
||||
if (!isExperimental)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
#endif
|
||||
|
||||
return new SceneOperation("Add Slice Settings")
|
||||
{
|
||||
OperationType = typeof(IObject3D),
|
||||
ResultType = typeof(SliceSettingsObject3D),
|
||||
TitleGetter = () => "Add Slice Settings".Localize(),
|
||||
Action = (sceneContext) =>
|
||||
{
|
||||
var sliceSettings = new SliceSettingsObject3D();
|
||||
sliceSettings.WrapSelectedItemAndSelect(sceneContext.Scene);
|
||||
},
|
||||
Icon = (theme) => StaticData.Instance.LoadIcon("settings.png", 16, 16).SetToColor(theme.TextColor),
|
||||
HelpTextGetter = () => "At least 1 part must be selected".Localize().Stars(),
|
||||
IsEnabled = (sceneContext) => IsMeshObject(sceneContext.Scene.SelectedItem),
|
||||
};
|
||||
}
|
||||
|
||||
private static SceneOperation ToggleWipeTowerOperation()
|
||||
{
|
||||
return new SceneOperation("Convert to Wipe Tower")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue