mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
When switching active extruder, get the extruder train from definition id
Not from extruder container stack ID. Contributes to issues CURA-340 and CURA-1278.
This commit is contained in:
parent
7dbafa06d1
commit
4d418a7c1a
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class ExtruderManager(QObject):
|
|||
if not UM.Application.getInstance().getGlobalContainerStack():
|
||||
return None #No active machine, so no active extruder.
|
||||
try:
|
||||
return self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getId()][str(self._active_extruder_index)]
|
||||
return self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getBottom().getId()][str(self._active_extruder_index)]
|
||||
except KeyError: #Extruder index could be -1 if the global tab is selected, or the entry doesn't exist if the machine definition is wrong.
|
||||
return None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue