mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:19:05 +08:00
Properly fallback to global if no extruders
This fixes the extruderValue function for printers such as the Ultimaker 2+.
This commit is contained in:
parent
6cf8536404
commit
a46f6cc14d
@ -328,8 +328,9 @@ class ExtruderManager(QObject):
|
||||
|
||||
if extruder:
|
||||
value = extruder.getRawProperty(key, "value")
|
||||
|
||||
if isinstance(value, UM.Settings.SettingFunction):
|
||||
value = value(extruder)
|
||||
if isinstance(value, UM.Settings.SettingFunction):
|
||||
value = value(extruder)
|
||||
else: #Just a value from global.
|
||||
value = UM.Application.getInstance().getGlobalContainerStack().getProperty(key, "value")
|
||||
|
||||
return value
|
||||
|
Loading…
x
Reference in New Issue
Block a user