Browse Source

putting the code in right location
checked: this code only checks for support type and adhesion type and make them lowercase

CURA-11048

saumya.jain 1 year ago
parent
commit
215a893c39
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cura/Settings/CuraFormulaFunctions.py

+ 3 - 3
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: