mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Don't mutate/pollute _all_extruder_settings
with additional values
CURA-11536
This commit is contained in:
parent
5da4dfcb70
commit
9d78c9ed58
1 changed files with 2 additions and 2 deletions
|
@ -109,10 +109,10 @@ class GcodeStartEndFormatter(Formatter):
|
|||
extruder_nr = self._all_extruder_settings["-1"].get(extruder_nr_expr, "-1")
|
||||
|
||||
if extruder_nr in self._all_extruder_settings:
|
||||
additional_variables = self._all_extruder_settings[extruder_nr]
|
||||
additional_variables = self._all_extruder_settings[extruder_nr].copy()
|
||||
else:
|
||||
Logger.warning(f"Extruder {extruder_nr} does not exist, using global settings")
|
||||
additional_variables = self._all_extruder_settings["-1"]
|
||||
additional_variables = self._all_extruder_settings["-1"].copy()
|
||||
|
||||
# Add the arguments and keyword arguments to the additional settings. These
|
||||
# are currently _not_ used, but they are added for consistency with the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue