mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-26 12:21:26 -07:00
Resolve circular imports
Some of these are only used for the type checks. Contributes to issue CURA-6600.
This commit is contained in:
parent
b05784e607
commit
8e49991087
6 changed files with 28 additions and 12 deletions
|
|
@ -12,6 +12,7 @@ from UM.Settings.InstanceContainer import InstanceContainer
|
|||
|
||||
from cura.Settings.ExtruderStack import ExtruderStack
|
||||
|
||||
from cura.Machines.ContainerTree import ContainerTree
|
||||
from .QualityGroup import QualityGroup
|
||||
from .QualityNode import QualityNode
|
||||
|
||||
|
|
@ -66,6 +67,18 @@ 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>
|
||||
# <machine> -> <material>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue