Merge pull request #945 from jlewin/master

Assign active material with preset key rather than name
This commit is contained in:
johnlewin 2016-06-14 15:41:29 -07:00 committed by GitHub
commit 9f5c53aaa7

View file

@ -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