From 5f67331bac6490bd0a1a34a199d8ab9448c93441 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 30 Jan 2020 18:20:28 +0100 Subject: [PATCH] Fix "typo" caused by cleanup before push --- cura/Settings/CuraFormulaFunctions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Settings/CuraFormulaFunctions.py b/cura/Settings/CuraFormulaFunctions.py index e4846a9da9..13e3dfb26e 100644 --- a/cura/Settings/CuraFormulaFunctions.py +++ b/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":