Skip to content

Commit

Permalink
fix: allows G2/G3 arcs with only I or J parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Dec 7, 2023
1 parent e17f518 commit 370cc42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/gcode-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function arcIJMoveToSVGPath (toolhead: Point, move: ArcMove): string {
// }

export function arcMoveToSvgPath (toolhead: Point, move: ArcMove): string {
if (move.i !== undefined && move.j !== undefined) {
if (move.i !== undefined || move.j !== undefined) {
return arcIJMoveToSVGPath(toolhead, move)
}

Expand Down

0 comments on commit 370cc42

Please sign in to comment.