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 bigXY = (deltaXY > moveLen);
|
||||||
const bigZ = (deltaZ > toolDiam/2 && deltaXY > tolerance);
|
const bigZ = (deltaZ > toolDiam/2 && deltaXY > tolerance);
|
||||||
const midZ = (absDeltaZ >= tolerance);
|
const midZ = (absDeltaZ >= tolerance);
|
||||||
if ((bigXY || bigZ) && (isMove || midZ)) {
|
if ((bigXY || bigZ) && midZ) {
|
||||||
let maxz = getZClearPath(
|
let maxz = getZClearPath(
|
||||||
terrain,
|
terrain,
|
||||||
lastPoint.x - wmx,
|
lastPoint.x - wmx,
|
||||||
|
|
@ -299,7 +299,7 @@
|
||||||
zadd,
|
zadd,
|
||||||
maxToolDiam/2,
|
maxToolDiam/2,
|
||||||
zclear
|
zclear
|
||||||
) + ztOff,
|
),
|
||||||
mustGoUp = Math.max(maxz - point.z, maxz - lastPoint.z) >= tolerance,
|
mustGoUp = Math.max(maxz - point.z, maxz - lastPoint.z) >= tolerance,
|
||||||
clearz = maxz;
|
clearz = maxz;
|
||||||
// up if any point between higher than start/outline, go up first
|
// up if any point between higher than start/outline, go up first
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue