From 8badb061da85a96def826e902e3af8d23043711d Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 30 Jun 2016 15:08:00 +0200 Subject: [PATCH] Check for definition_id, not variant name Since the dict is supposed to be per definition Contributes to CURA-342 --- plugins/XmlMaterialProfile/XmlMaterialProfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 53659f14bb..b1b065db70 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -127,7 +127,7 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer): variant = container.getMetaDataEntry("variant") if variant: - if variant not in machine_nozzle_map: + if definition_id not in machine_nozzle_map: machine_nozzle_map[definition_id] = [] machine_nozzle_map[definition_id].append(container)