fix deep ease-down that wraps a polygon more than once

This commit is contained in:
Stewart Allen 2026-01-12 00:15:17 -05:00
commit fb5093fca5

View file

@ -834,7 +834,7 @@ export async function prepare_one(widget, settings, print, firstPoint, update) {
let pt = points[ii];
if (zat <= pt.z) {
// rotate points to start at end of ease
points = [...points.slice(i), ...points.slice(0,i)];
points = [...points.slice(ii), ...points.slice(0,ii)];
break;
}
if (i > 0) {