fix first point when z top offset and stock set

This commit is contained in:
Stewart Allen 2020-11-30 10:12:47 -05:00
commit 5b96d7de97
2 changed files with 1 additions and 2 deletions

View file

@ -226,7 +226,6 @@
// nl.append(" ; ").append(comment);
// nl.append(" ; ").append(points);
// }
append(nl.join(''));
points++;
}

View file

@ -223,7 +223,7 @@
// before first point, move cutting head to point above it
// then set that new point as the lastPoint
if (!lastPoint) {
let above = point.clone().setZ(zmax + zadd);
let above = point.clone().setZ(zmax + zadd + ztOff);
lastPoint = layerPush(above, 0, 0, tool.getNumber());
}