fix boundary check on z lift and move

This commit is contained in:
Stewart Allen 2023-01-20 18:20:44 -05:00
commit 27d4081b08

View file

@ -368,7 +368,7 @@ function prepEach(widget, settings, print, firstPoint, update) {
clearz = maxz = zmax + zadd;
}
// up if any point between higher than start/outline, go up first
const zIsBelow = point.z < maxz;
const zIsBelow = point.z <= maxz;
if (mustGoUp || zIsBelow) {
const zClearance = clearz + ztOff;
if (zIsBelow) {