use gcode_file instead of subtask_name if it doesn't have 3mf extension
This commit is contained in:
jneilliii 2024-02-13 18:44:24 -05:00
parent 3d0cc26147
commit cb4b345aa7
2 changed files with 3 additions and 1 deletions

View File

@ -172,6 +172,8 @@ class BambuPrinter:
self._sdPrintStarting = False
if not self._sdPrinting:
filename = print_job.get("subtask_name")
if filename[-4:].lower() != ".3mf":
filename = print_job.get("gcode_file")
self._selectSdFile(filename)
self._startSdPrint(from_printer=True)

View File

@ -14,7 +14,7 @@ plugin_package = "octoprint_bambu_printer"
plugin_name = "OctoPrint-BambuPrinter"
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
plugin_version = "0.0.12"
plugin_version = "0.0.13"
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module