mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 15:54:32 +08:00
Only remove excluded materials that were added
Contributes to issue CURA-6600.
This commit is contained in:
parent
8e49991087
commit
accc4ccd21
@ -67,17 +67,6 @@ class QualityManager(QObject):
|
|||||||
self._update_timer.timeout.connect(self._updateMaps)
|
self._update_timer.timeout.connect(self._updateMaps)
|
||||||
|
|
||||||
def initialize(self) -> None:
|
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:
|
# Initialize the lookup tree for quality profiles with following structure:
|
||||||
# <machine> -> <nozzle> -> <buildplate> -> <material>
|
# <machine> -> <nozzle> -> <buildplate> -> <material>
|
||||||
|
@ -47,6 +47,7 @@ class VariantNode(ContainerNode):
|
|||||||
materials = materials_per_base_file.values()
|
materials = materials_per_base_file.values()
|
||||||
|
|
||||||
for excluded_material in self.machine.exclude_materials:
|
for excluded_material in self.machine.exclude_materials:
|
||||||
|
if excluded_material in materials:
|
||||||
del materials[excluded_material]
|
del materials[excluded_material]
|
||||||
|
|
||||||
for material in materials:
|
for material in materials:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user