fix multi-widget safe move between ops

This commit is contained in:
Stewart Allen 2025-11-16 14:02:48 -05:00
commit 55ad723ad7

View file

@ -337,7 +337,7 @@ export function prepEach(widget, settings, print, firstPoint, update) {
// 1. move to safe z of current point preserving angle
// 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) {
if (lop && lop !== currentOp && lastPoint) {
camOut(lastPoint.clone().setZ(zsafe).setA(lastPoint.a), 0);
camOut(point.clone().setZ(zsafe).setA(lastPoint.a), 0);
camOut(point.clone().setZ(zsafe), 0);