Browse Source

setDefinition() takes the ID instead of the container

CURA-4713
Lipu Fei 7 years ago
parent
commit
248fe37ed9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Settings/CuraContainerRegistry.py

+ 1 - 1
cura/Settings/CuraContainerRegistry.py

@@ -448,7 +448,7 @@ class CuraContainerRegistry(ContainerRegistry):
         user_container.addMetaDataEntry("machine", extruder_stack.getId())
         user_container.addMetaDataEntry("machine", extruder_stack.getId())
         from cura.CuraApplication import CuraApplication
         from cura.CuraApplication import CuraApplication
         user_container.addMetaDataEntry("setting_version", CuraApplication.SettingVersion)
         user_container.addMetaDataEntry("setting_version", CuraApplication.SettingVersion)
-        user_container.setDefinition(machine.definition)
+        user_container.setDefinition(machine.definition.getId())
 
 
         if machine.userChanges:
         if machine.userChanges:
             # for the newly created extruder stack, we need to move all "per-extruder" settings to the user changes
             # for the newly created extruder stack, we need to move all "per-extruder" settings to the user changes