mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 03:59:04 +08:00
Fixed stupid mistake with getting active extruder stack
CURA-1689
This commit is contained in:
parent
6a1f4cbabb
commit
7176c98d8a
@ -71,9 +71,9 @@ class ExtruderManager(QObject):
|
|||||||
if global_container_stack:
|
if global_container_stack:
|
||||||
global_definition_container = UM.Application.getInstance().getGlobalContainerStack().getBottom()
|
global_definition_container = UM.Application.getInstance().getGlobalContainerStack().getBottom()
|
||||||
if global_definition_container:
|
if global_definition_container:
|
||||||
if str(self._active_extruder_index) in self._extruder_trains[global_definition_container.getId()]:
|
if global_definition_container.getId() in self._extruder_trains:
|
||||||
return self._extruder_trains[global_definition_container.getId()][str(self._active_extruder_index)]
|
if str(self._active_extruder_index) in self._extruder_trains[global_definition_container.getId()]:
|
||||||
return self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getBottom().getId()][str(self._active_extruder_index)]
|
return self._extruder_trains[global_definition_container.getId()][str(self._active_extruder_index)]
|
||||||
|
|
||||||
|
|
||||||
## Adds all extruders of a specific machine definition to the extruder
|
## Adds all extruders of a specific machine definition to the extruder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user