Skip to content

Commit

Permalink
Merge branch '5.5' into CURA-10645_fix-hidden-tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
saumyaj3 authored Oct 5, 2023
2 parents a2cee21 + 2a8a4ad commit 57a9638
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 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
2 changes: 1 addition & 1 deletion cura/UI/ObjectsModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def __init__(self, parent = None) -> None:
self._group_name_template = catalog.i18nc("@label", "Group #{group_nr}")
self._group_name_prefix = self._group_name_template.split("#")[0]

self._naming_regex = re.compile("^(.+)\(([0-9]+)\)$")
self._naming_regex = re.compile(r"^(.+)\(([0-9]+)\)$")

def setActiveBuildPlate(self, nr: int) -> None:
if self._build_plate_number != nr:
Expand Down
6 changes: 3 additions & 3 deletions resources/definitions/fdmprinter.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -4534,7 +4534,7 @@
"type": "extruder",
"default_value": "0",
"value": "support_extruder_nr",
"enabled": "(support_enable or support_meshes_present) and extruders_enabled_count > 1",
"enabled": "(support_enable or support_meshes_present) and extruders_enabled_count > 1 and support_interface_enable",
"resolve": "max(extruderValues('support_interface_extruder_nr'))",
"settable_per_mesh": false,
"settable_per_extruder": false,
Expand All @@ -4547,7 +4547,7 @@
"type": "extruder",
"default_value": "0",
"value": "support_interface_extruder_nr",
"enabled": "(support_enable or support_meshes_present) and extruders_enabled_count > 1",
"enabled": "(support_enable or support_meshes_present) and extruders_enabled_count > 1 and support_roof_enable",
"resolve": "max(extruderValues('support_roof_extruder_nr'))",
"settable_per_mesh": false,
"settable_per_extruder": false
Expand All @@ -4559,7 +4559,7 @@
"type": "extruder",
"default_value": "0",
"value": "support_interface_extruder_nr",
"enabled": "(support_enable or support_meshes_present) and extruders_enabled_count > 1",
"enabled": "(support_enable or support_meshes_present) and extruders_enabled_count > 1 and support_bottom_enable",
"resolve": "max(extruderValues('support_bottom_extruder_nr'))",
"settable_per_mesh": false,
"settable_per_extruder": false
Expand Down

0 comments on commit 57a9638

Please sign in to comment.