From 370cc420fd18248936d0d5bb138065fda68cae2c Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Thu, 7 Dec 2023 17:38:25 +0000 Subject: [PATCH] fix: allows G2/G3 arcs with only I or J parameter Signed-off-by: Pedro Lamas --- src/util/gcode-preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/gcode-preview.ts b/src/util/gcode-preview.ts index 07e2636ee2..73e8e99255 100644 --- a/src/util/gcode-preview.ts +++ b/src/util/gcode-preview.ts @@ -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) }