mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix typing
This commit is contained in:
parent
a86311fea3
commit
04c39824cb
1 changed files with 9 additions and 0 deletions
|
@ -355,6 +355,8 @@ class StartSliceJob(Job):
|
|||
try:
|
||||
# any setting can be used as a token
|
||||
fmt = GcodeStartEndFormatter(default_extruder_nr = default_extruder_nr)
|
||||
if self._all_extruders_settings is None:
|
||||
return ""
|
||||
settings = self._all_extruders_settings.copy()
|
||||
settings["default_extruder_nr"] = default_extruder_nr
|
||||
return str(fmt.format(value, **settings))
|
||||
|
@ -368,6 +370,10 @@ class StartSliceJob(Job):
|
|||
message.id = int(stack.getMetaDataEntry("position"))
|
||||
if not self._all_extruders_settings:
|
||||
self._cacheAllExtruderSettings()
|
||||
|
||||
if self._all_extruders_settings is None:
|
||||
return
|
||||
|
||||
extruder_nr = stack.getProperty("extruder_nr", "value")
|
||||
settings = self._all_extruders_settings[str(extruder_nr)].copy()
|
||||
|
||||
|
@ -396,6 +402,9 @@ class StartSliceJob(Job):
|
|||
if not self._all_extruders_settings:
|
||||
self._cacheAllExtruderSettings()
|
||||
|
||||
if self._all_extruders_settings is None:
|
||||
return
|
||||
|
||||
settings = self._all_extruders_settings["-1"].copy()
|
||||
|
||||
# Pre-compute material material_bed_temp_prepend and material_print_temp_prepend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue