Skip to content

Commit

Permalink
putting the code in right location
Browse files Browse the repository at this point in the history
checked: this code only checks for support type and adhesion type and make them lowercase

CURA-11048
  • Loading branch information
saumyaj3 committed Oct 4, 2023
1 parent 5b6fea9 commit 215a893
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cura/Settings/CuraFormulaFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def getValueInExtruder(self, extruder_position: int, property_key: str,
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]:
Expand Down Expand Up @@ -90,9 +93,6 @@ def getValuesInAllExtruders(self, property_key: str,
if isinstance(value, SettingFunction):
value = value(extruder, context = context)

if isinstance(value, str):
value = value.lower()

result.append(value)

if not result:
Expand Down

0 comments on commit 215a893

Please sign in to comment.