mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Only remove excluded materials that were added
Contributes to issue CURA-6600.
This commit is contained in:
parent
8e49991087
commit
accc4ccd21
2 changed files with 2 additions and 12 deletions
|
@ -47,7 +47,8 @@ class VariantNode(ContainerNode):
|
|||
materials = materials_per_base_file.values()
|
||||
|
||||
for excluded_material in self.machine.exclude_materials:
|
||||
del materials[excluded_material]
|
||||
if excluded_material in materials:
|
||||
del materials[excluded_material]
|
||||
|
||||
for material in materials:
|
||||
base_file = material["base_file"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue