Fix case where a global profile would be recognised as a extruder profile

CURA-6991
This commit is contained in:
Jaime van Kessel 2019-11-21 13:10:01 +01:00
parent 95cffb6710
commit cd7f0e8a76
No known key found for this signature in database
GPG Key ID: 3710727397403C91

View File

@ -140,7 +140,7 @@ class MachineNode(ContainerNode):
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 quality_changes.get("position") is not None: # An extruder profile.
if quality_changes.get("position") is not None and quality_changes.get("position") != "None": # An extruder profile.
groups_by_name[name].metadata_per_extruder[int(quality_changes["position"])] = quality_changes
else: # Global profile.
groups_by_name[name].metadata_for_global = quality_changes