adding ztOff is breaking some cases with z anchor not set to top
This commit is contained in:
parent
c9c09fa782
commit
fb603a53e5
1 changed files with 2 additions and 2 deletions
|
|
@ -288,7 +288,7 @@
|
|||
const bigXY = (deltaXY > moveLen);
|
||||
const bigZ = (deltaZ > toolDiam/2 && deltaXY > tolerance);
|
||||
const midZ = (absDeltaZ >= tolerance);
|
||||
if ((bigXY || bigZ) && (isMove || midZ)) {
|
||||
if ((bigXY || bigZ) && midZ) {
|
||||
let maxz = getZClearPath(
|
||||
terrain,
|
||||
lastPoint.x - wmx,
|
||||
|
|
@ -299,7 +299,7 @@
|
|||
zadd,
|
||||
maxToolDiam/2,
|
||||
zclear
|
||||
) + ztOff,
|
||||
),
|
||||
mustGoUp = Math.max(maxz - point.z, maxz - lastPoint.z) >= tolerance,
|
||||
clearz = maxz;
|
||||
// up if any point between higher than start/outline, go up first
|
||||
|
|
|
|||
Loading…
Reference in a new issue