mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 15:27:53 -06:00
Fix check if machine's extruders are processed
Luckily this did never occur anyway since the rest of the code was sound. Contributes to issue CURA-340.
This commit is contained in:
parent
9d618282ed
commit
9f3752276f
1 changed files with 3 additions and 2 deletions
|
@ -191,9 +191,10 @@ class ExtruderManager(QObject):
|
|||
container_registry.addContainer(container_stack)
|
||||
|
||||
## Generates extruders for a specific machine.
|
||||
#
|
||||
# \param machine_id The machine to get the extruders of.
|
||||
def getMachineExtruders(self, machine_id):
|
||||
container_registry = UM.Settings.ContainerRegistry.getInstance()
|
||||
if not machine_id in self._extruder_trains:
|
||||
if machine_id not in self._extruder_trains:
|
||||
UM.Logger.log("w", "Tried to get the extruder trains for machine %s, which doesn't exist.", machine_id)
|
||||
return
|
||||
for name in self._extruder_trains[machine_id]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue