mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Update documentation for return of getExtruderValue
It now falls back to global instead of returning None. Contributes to issue CURA-2024.
This commit is contained in:
parent
31436cbdf5
commit
d53fe9637e
1 changed files with 2 additions and 2 deletions
|
@ -320,11 +320,11 @@ class ExtruderManager(QObject):
|
|||
# \param extruder_index The index of the extruder to get the value from.
|
||||
# \param key The key of the setting to get the value of.
|
||||
#
|
||||
# \return The value of the setting for the specified extruder or None if not found.
|
||||
# \return The value of the setting for the specified extruder or for the
|
||||
# global stack if not found.
|
||||
@staticmethod
|
||||
def getExtruderValue(extruder_index, key):
|
||||
extruder = ExtruderManager.getInstance().getExtruderStack(extruder_index)
|
||||
value = None
|
||||
|
||||
if extruder:
|
||||
value = extruder.getRawProperty(key, "value")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue