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
|
@ -67,17 +67,6 @@ class QualityManager(QObject):
|
|||
self._update_timer.timeout.connect(self._updateMaps)
|
||||
|
||||
def initialize(self) -> None:
|
||||
container_tree = ContainerTree()
|
||||
for machine_id, machine in container_tree.machines.items():
|
||||
print("--", machine_id)
|
||||
for variant_name, variant in machine.variants.items():
|
||||
print("-- --", variant_name)
|
||||
for material_base_file, material in variant.materials.items():
|
||||
print("-- -- --", material_base_file)
|
||||
for quality_id, quality in material.qualities.items():
|
||||
print("-- -- -- --", quality_id)
|
||||
for intent_id in quality.intents:
|
||||
print("-- -- -- -- --", intent_id)
|
||||
|
||||
# Initialize the lookup tree for quality profiles with following structure:
|
||||
# <machine> -> <nozzle> -> <buildplate> -> <material>
|
||||
|
|
|
@ -47,6 +47,7 @@ class VariantNode(ContainerNode):
|
|||
materials = materials_per_base_file.values()
|
||||
|
||||
for excluded_material in self.machine.exclude_materials:
|
||||
if excluded_material in materials:
|
||||
del materials[excluded_material]
|
||||
|
||||
for material in materials:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue