Set the extruder metadata to its ID

Not the actual extruder!

Contributes to issue CURA-4715.
This commit is contained in:
Ghostkeeper 2017-12-19 17:28:05 +01:00
parent 05e232b498
commit d9bc561d73
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -168,7 +168,7 @@ class LegacyProfileReader(ProfileReader):
global_profile.setDirty(True)
#Only the extruder stack has an extruder metadata entry.
profile.addMetaDataEntry("extruder", ExtruderManager.getInstance().getActiveExtruderStack().definition)
profile.addMetaDataEntry("extruder", ExtruderManager.getInstance().getActiveExtruderStack().definition.getId())
#Split all settings into per-extruder and global settings.
for setting_key in profile.getAllKeys():