From d53fe9637ecdd01b08a5d2041b486e9391f82ed3 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 8 Aug 2016 09:44:39 +0200 Subject: [PATCH] Update documentation for return of getExtruderValue It now falls back to global instead of returning None. Contributes to issue CURA-2024. --- cura/Settings/ExtruderManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Settings/ExtruderManager.py b/cura/Settings/ExtruderManager.py index 0cb9322fd9..10556096b0 100644 --- a/cura/Settings/ExtruderManager.py +++ b/cura/Settings/ExtruderManager.py @@ -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")