Merge pull request #945 from jlewin/master
Assign active material with preset key rather than name
This commit is contained in:
commit
9f5c53aaa7
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
newLayer.Name = "Material" + ActiveSliceSettings.Instance.MaterialLayers.Count;
|
||||
ActiveSliceSettings.Instance.MaterialLayers.Add(newLayer);
|
||||
ActiveSliceSettings.Instance.ActiveMaterialKey = newLayer.ID;
|
||||
ActiveSliceSettings.Instance.SetMaterialPreset(this.extruderIndex, newLayer.Name);
|
||||
ActiveSliceSettings.Instance.SetMaterialPreset(this.extruderIndex, newLayer.ID);
|
||||
}
|
||||
|
||||
// TODO: Consider adding a .Replace(existingWidget, newWidget) to GuiWidget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue