mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Give default empty machine_extruder_ids
Works also if the machine has no machine_extruder_ids metadata. Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
parent
a139809b75
commit
2660b2a68f
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class ExtruderManager:
|
|||
|
||||
#Get the extruder definitions belonging to the current machine.
|
||||
machine = self._global_container_stack.getBottom()
|
||||
extruder_train_ids = machine.getMetaDataEntry("machine_extruder_trains")
|
||||
extruder_train_ids = machine.getMetaDataEntry("machine_extruder_trains", { })
|
||||
for _,extruder_train_id in extruder_train_ids.items():
|
||||
extruder_definitions = UM.Settings.ContainerRegistry.getInstance().findDefinitionContainers(id = extruder_train_id) #Should be only 1 definition if IDs are unique, but add the whole list anyway.
|
||||
if not extruder_definitions: #Empty list or error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue