Fix renaming custom profile

CURA-6842
This commit is contained in:
Lipu Fei 2019-10-02 15:21:38 +02:00
parent fba7a6ff33
commit a93fd982dd
3 changed files with 24 additions and 4 deletions

View file

@ -142,6 +142,7 @@ class MachineNode(ContainerNode):
parent = CuraApplication.getInstance())
elif groups_by_name[name].intent_category == "default": # Intent category should be stored as "default" if everything is default or as the intent if any of the extruder have an actual intent.
groups_by_name[name].intent_category = quality_changes.get("intent_category", "default")
if "position" in quality_changes: # An extruder profile.
groups_by_name[name].metadata_per_extruder[int(quality_changes["position"])] = quality_changes
else: # Global profile.