mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
CURA-4400 fix extruderValue / getExtruderValue for extruder_index -1
This commit is contained in:
parent
516772e1f7
commit
cf3032605c
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue