Skip to content

Commit

Permalink
Add BambuStudio support for layers (#108)
Browse files Browse the repository at this point in the history
* Add BambuStudio support for layers

* Bump version to 2.1.8
  • Loading branch information
crysxd authored Feb 2, 2025
1 parent 54f7267 commit 2fbcf82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions octoapp/layerutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def IsLayerChange(line, context):
if line.startswith("; generated by PrusaSlicer") or line.startswith("; generated by OrcaSlicer") or line.startswith("; generated by SuperSlicer"):
context["slicer"] = "prusa"

if line.startswith("; BambuStudio"):
context["slicer"] = "bambu"

if line.startswith(";Generated with Cura"):
context["slicer"] = "cura"

Expand Down Expand Up @@ -60,6 +63,9 @@ def IsLayerChange(line, context):
if slicer == "prusa":
return line.startswith(";LAYER_CHANGE")

if slicer == "bambu":
return line.startswith("; CHANGE_LAYER")

if slicer == "cura":
return line.startswith(";LAYER:")

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
# Note that this is also parsed by the moonraker module to pull the version, so the string and format must remain the same!
plugin_version = "2.1.7"
plugin_version = "2.1.8"

# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
# module
Expand Down

0 comments on commit 2fbcf82

Please sign in to comment.