Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gcodepreview): ignore moves without coordinates #1416

Merged

Conversation

pedrolamas
Copy link
Member

@pedrolamas pedrolamas commented Apr 13, 2024

I've noticed that some files sliced by Orca Slicer have G0/G1 commands without any X, Y, Z, or E change.

Though I am not sure why these commands exist, the fact is that this introduced a bug on the Gcode Previewer, where these moves would cause extra extrusion markers to apper.

The fix here is to ignore any G0/G1/G2/G3 command that does not include at least one of the necessary coordinates change arguments.

This also includes a minor fix for the previewer code where retractions where incorrectly being checked for extrusions.

Before

image

After

image

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
@pedrolamas pedrolamas added the GH - Bug Something isn't working label Apr 13, 2024
@pedrolamas pedrolamas added this to the 1.29.2 milestone Apr 13, 2024
@pedrolamas pedrolamas merged commit 8748e16 into fluidd-core:develop Apr 13, 2024
6 checks passed
@pedrolamas pedrolamas deleted the pedrolamas/fix-gcode-preview branch April 13, 2024 21:42
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GH - Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant