fix 'safe' moves during operation changes to be moves, not cuts

This commit is contained in:
Stewart Allen 2025-11-11 15:51:12 -05:00
commit ed11fbd82a

View file

@ -338,9 +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 !== currentOp && lastPoint) {
camOut(lastPoint.clone().setZ(zsafe).setA(lastPoint.a), 1);
camOut(point.clone().setZ(zsafe).setA(lastPoint.a), 1);
camOut(point.clone().setZ(zsafe), 1);
camOut(lastPoint.clone().setZ(zsafe).setA(lastPoint.a), 0);
camOut(point.clone().setZ(zsafe).setA(lastPoint.a), 0);
camOut(point.clone().setZ(zsafe), 0);
}
if (lop?.type === 'index' && lop !== currentOp ) {