diff --git a/UM/Settings/SettingFunction.py b/UM/Settings/SettingFunction.py index fb0d998f8..194087a00 100644 --- a/UM/Settings/SettingFunction.py +++ b/UM/Settings/SettingFunction.py @@ -104,8 +104,7 @@ def __call__(self, value_provider: ContainerInterface, context: Optional[Propert local_variables[name] = value if additional_variables is not None: - for name, value in additional_variables.items(): - local_variables[name] = value + local_variables |= additional_variables globals_variables: Dict[str, Any] = {} globals_variables.update(globals())