From 215a893c39c5e13da95e6ff5866aa5fd26268d2f Mon Sep 17 00:00:00 2001 From: "saumya.jain" Date: Wed, 4 Oct 2023 11:19:20 +0200 Subject: [PATCH] putting the code in right location checked: this code only checks for support type and adhesion type and make them lowercase CURA-11048 --- cura/Settings/CuraFormulaFunctions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/Settings/CuraFormulaFunctions.py b/cura/Settings/CuraFormulaFunctions.py index 5ef32d77da..93a4de28ec 100644 --- a/cura/Settings/CuraFormulaFunctions.py +++ b/cura/Settings/CuraFormulaFunctions.py @@ -56,6 +56,9 @@ class CuraFormulaFunctions: if isinstance(value, SettingFunction): value = value(extruder_stack, context = context) + if isinstance(value, str): + value = value.lower() + return value def _getActiveExtruders(self, context: Optional["PropertyEvaluationContext"] = None) -> List[str]: @@ -90,9 +93,6 @@ class CuraFormulaFunctions: if isinstance(value, SettingFunction): value = value(extruder, context = context) - if isinstance(value, str): - value = value.lower() - result.append(value) if not result: