mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 03:29:03 +08:00
Display only the relevant materials when opening a project
Ignore the materials of the extruders that are not visible when opening a project file with a CFFF. CURA-7646
This commit is contained in:
parent
61cc8c9a95
commit
f8a15ea29e
@ -502,6 +502,9 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||
# Now we know which material is in which extruder. Let's use that to sort the material_labels according to
|
||||
# their extruder position
|
||||
material_labels = [material_name for pos, material_name in sorted(materials_in_extruders_dict.items())]
|
||||
machine_extruder_count = self._getMachineExtruderCount()
|
||||
if machine_extruder_count:
|
||||
material_labels = material_labels[:machine_extruder_count]
|
||||
|
||||
num_visible_settings = 0
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user