Skip to content

Commit

Permalink
Fix layer detection for Artillery Slicer (#93)
Browse files Browse the repository at this point in the history
* Fix layer detection for Artillery Slicer

* Bump version to 2.1.6
  • Loading branch information
crysxd authored Oct 6, 2024
1 parent bf30adc commit 612d03c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion octoapp/layerutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ def IsLayerChange(line, context):
if line.startswith("; G-Code generated by Simplify3D"):
context["slicer"] = "simplify"

slicer = context.get("slicer", None)
# Artillery Slicer (and others?) removed the "generated by" line, this line indicates a PS derivative
if line.startswith("; external perimeters extrusion width ="):
context["slicer"] = "prusa"

# Second fallback, this indicates a Cura derivative
if line.startswith(";LAYER_COUNT:"):
context["slicer"] = "cura"

slicer = context.get("slicer", None)

if slicer == "prusa":
return line.startswith(";LAYER_CHANGE")
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.5"
plugin_version = "2.1.6"

# 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 612d03c

Please sign in to comment.