From 8926a09de9e324a3a1a7b9da53a596674f8803a1 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 16 Nov 2025 18:26:14 -0500 Subject: [PATCH] fix safe moves betwen ops to account for widget platform offset --- src/kiri/mode/cam/prepare.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kiri/mode/cam/prepare.js b/src/kiri/mode/cam/prepare.js index 268ed230..99e5857b 100644 --- a/src/kiri/mode/cam/prepare.js +++ b/src/kiri/mode/cam/prepare.js @@ -338,7 +338,9 @@ export function prepEach(widget, settings, print, firstPoint, update) { // 2. move to safe z of new point preserving old angle // 3. move to safe z of new point with new angle if (lop && lop !== currentOp && lastPoint) { - camOut(lastPoint.clone().setZ(zsafe).setA(lastPoint.a), 0); + // compensate for applyWidgetMovement() applied to lastPoint + let lpo = lastPoint.clone().move({ x: -wmx, y: -wmy, z: -zadd }); + camOut(lpo.clone().setZ(zsafe).setA(lastPoint.a), 0); camOut(point.clone().setZ(zsafe).setA(lastPoint.a), 0); camOut(point.clone().setZ(zsafe), 0); }