Browse Source

Fix "typo" caused by cleanup before push

fieldOfView 5 years ago
parent
commit
5f67331bac
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cura/Settings/CuraFormulaFunctions.py

+ 2 - 2
cura/Settings/CuraFormulaFunctions.py

@@ -145,7 +145,7 @@ class CuraFormulaFunctions:
         return global_stack.getProperty(property_key, "value", context = context)
 
     # Gets the extruder value for the given setting key starting from the given container index.
-    def getValueFromContainerAtIndexInExtruder(self, extruder_index: int, property_key: str, container_index: int,
+    def getValueFromContainerAtIndexInExtruder(self, extruder_position: int, property_key: str, container_index: int,
                                                context: Optional["PropertyEvaluationContext"] = None) -> Any:
         machine_manager = self._application.getMachineManager()
         global_stack = machine_manager.activeMachine
@@ -163,7 +163,7 @@ class CuraFormulaFunctions:
         context = self.createContextForDefaultValueEvaluation(extruder_stack)
         context.context["evaluate_from_container_index"] = container_index
 
-        return self.getValueInExtruder(extruder_index, property_key, context)
+        return self.getValueInExtruder(extruder_position, property_key, context)
 
     # Creates a context for evaluating default values (skip the user_changes container).
     def createContextForDefaultValueEvaluation(self, source_stack: "CuraContainerStack") -> "PropertyEvaluationContext":