mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:29:02 +08:00
CURA-4400 fix crash when switching from disabled 1st extruder to single extruder machine
This commit is contained in:
parent
a9976e93c1
commit
f576b1f117
@ -299,6 +299,7 @@ class MachineManager(QObject):
|
||||
containers = container_registry.findContainerStacks(id = stack_id)
|
||||
if containers:
|
||||
global_stack = containers[0]
|
||||
self._default_extruder_position = "0" # start off with position 0, later on update the default extruder
|
||||
ExtruderManager.getInstance().setActiveExtruderIndex(0) # Switch to first extruder
|
||||
self._global_container_stack = global_stack
|
||||
Application.getInstance().setGlobalContainerStack(global_stack)
|
||||
|
Loading…
x
Reference in New Issue
Block a user