mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:38:58 +08:00
Check for definition_id, not variant name
Since the dict is supposed to be per definition Contributes to CURA-342
This commit is contained in:
parent
343280103f
commit
8badb061da
@ -127,7 +127,7 @@ class XmlMaterialProfile(UM.Settings.InstanceContainer):
|
|||||||
|
|
||||||
variant = container.getMetaDataEntry("variant")
|
variant = container.getMetaDataEntry("variant")
|
||||||
if 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] = []
|
||||||
machine_nozzle_map[definition_id].append(container)
|
machine_nozzle_map[definition_id].append(container)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user