mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:59:05 +08:00
CURA-4400 fix extruderValue / getExtruderValue for extruder_index -1
This commit is contained in:
parent
516772e1f7
commit
cf3032605c
@ -668,6 +668,8 @@ class ExtruderManager(QObject):
|
||||
# global stack if not found.
|
||||
@staticmethod
|
||||
def getExtruderValue(extruder_index, key):
|
||||
if extruder_index == -1:
|
||||
extruder_index = int(Application.getInstance().getMachineManager().defaultExtruderPosition)
|
||||
extruder = ExtruderManager.getInstance().getExtruderStack(extruder_index)
|
||||
|
||||
if extruder:
|
||||
|
Loading…
x
Reference in New Issue
Block a user