patch corner case for routing in some contour paths

This commit is contained in:
Stewart Allen 2022-05-01 18:18:17 -04:00
commit 9432eaba42

View file

@ -291,7 +291,7 @@ function prepEach(widget, settings, print, firstPoint, update) {
const bigXY = (deltaXY > moveLen);
const bigZ = (deltaZ > toolDiam/2 && deltaXY > tolerance);
const midZ = (absDeltaZ >= tolerance);
if ((bigXY || bigZ) && midZ) {
if (bigXY || bigZ || midZ) {
let maxz = getZClearPath(
terrain,
lastPoint.x - wmx,