Browse Source

Fix specific extruder not being used

CURA-11536
Erwan MATHIEU 1 year ago
parent
commit
54df08f47f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/CuraEngineBackend/StartSliceJob.py

+ 1 - 1
plugins/CuraEngineBackend/StartSliceJob.py

@@ -106,7 +106,7 @@ class GcodeStartEndFormatter(Formatter):
                 # 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
                 # 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:
             additional_variables = self._all_extruder_settings[extruder_nr].copy()