Fix specific extruder not being used

CURA-11536
This commit is contained in:
Erwan MATHIEU 2024-01-16 13:14:49 +01:00
parent 9d78c9ed58
commit 54df08f47f

View file

@ -106,7 +106,7 @@ class GcodeStartEndFormatter(Formatter):
# dict-representation of the global container stack, with additional properties such # dict-representation of the global container stack, with additional properties such
# as `initial_extruder_nr`. As users may enter such expressions we can't use the # as `initial_extruder_nr`. As users may enter such expressions we can't use the
# global container stack. # global container stack.
extruder_nr = self._all_extruder_settings["-1"].get(extruder_nr_expr, "-1") extruder_nr = str(self._all_extruder_settings["-1"].get(extruder_nr_expr, "-1"))
if extruder_nr in self._all_extruder_settings: if extruder_nr in self._all_extruder_settings:
additional_variables = self._all_extruder_settings[extruder_nr].copy() additional_variables = self._all_extruder_settings[extruder_nr].copy()