mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Quality changes didn't have the right extruder ID set in some situations.
CURA-2414 Quality changes profiles are created incorrectly
This commit is contained in:
parent
cd120c6be5
commit
8c8cd86a08
3 changed files with 13 additions and 14 deletions
|
@ -141,12 +141,6 @@ class QualityManager:
|
|||
for material_instance in material_containers:
|
||||
material_ids.add(material_instance.getId())
|
||||
|
||||
|
||||
if machine_definition.getMetaDataEntry("type") == "extruder":
|
||||
extruder_id = machine_definition.getId()
|
||||
else:
|
||||
extruder_id = None
|
||||
|
||||
containers = UM.Settings.ContainerRegistry.getInstance().findInstanceContainers(**criteria)
|
||||
|
||||
result = []
|
||||
|
@ -154,8 +148,6 @@ class QualityManager:
|
|||
# If the machine specifies we should filter by material, exclude containers that do not match any active material.
|
||||
if filter_by_material and container.getMetaDataEntry("material") not in material_ids:
|
||||
continue
|
||||
if extruder_id != container.getMetaDataEntry("extruder"):
|
||||
continue
|
||||
result.append(container)
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue