name changes

CURA-10685
This commit is contained in:
saumya.jain 2023-08-25 15:46:30 +02:00
parent 2c6e3fb813
commit ab8b7c3ab5
4 changed files with 6 additions and 6 deletions

View file

@ -97,14 +97,14 @@ class CuraFormulaFunctions:
return result
# Get the first extruder that adheres to a specific (boolean) property, like 'material_is_support_material'.
def getAnyExtruderPositionWithOrDefault(self, filter_key: str,
# Get the first extruder with material that adheres to a specific (boolean) property, like 'material_is_support_material'.
def getExtruderPositionWithMaterial(self, filter_key: str,
context: Optional["PropertyEvaluationContext"] = None) -> str:
for extruder in self._getActiveExtruders(context):
material_container = extruder.material
value = material_container.getProperty(filter_key, "value", context)
if value is not None:
return extruder.position
return str(extruder.position)
return self.getDefaultExtruderPosition()
# Get the resolve value or value for a given key.