From cd7f0e8a76f6a0e9856f242f47b16a65c9c46557 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 21 Nov 2019 13:10:01 +0100 Subject: [PATCH] Fix case where a global profile would be recognised as a extruder profile CURA-6991 --- cura/Machines/MachineNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Machines/MachineNode.py b/cura/Machines/MachineNode.py index 8d69ffdc8d..92f71b409b 100644 --- a/cura/Machines/MachineNode.py +++ b/cura/Machines/MachineNode.py @@ -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