fix part offset path routing. fix another empty top case
This commit is contained in:
parent
8ac7d3b89a
commit
e3d91fbdc4
2 changed files with 5 additions and 5 deletions
|
|
@ -268,7 +268,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const haslines = lines.length || opt.emptyok;
|
const haslines = lines.length || opt.emptyok;
|
||||||
const hastops = !opt.genso || retn.tops.length || opt.notopok;
|
const hastops = !opt.genso || opt.notopok || (retn.tops && retn.tops.length);
|
||||||
|
|
||||||
if (opt.each && haslines && hastops) {
|
if (opt.each && haslines && hastops) {
|
||||||
opt.each(retn, index, total, UTIL.time() - mark);
|
opt.each(retn, index, total, UTIL.time() - mark);
|
||||||
|
|
|
||||||
|
|
@ -258,10 +258,10 @@
|
||||||
if ((bigXY || bigZ) && (isMove || midZ)) {
|
if ((bigXY || bigZ) && (isMove || midZ)) {
|
||||||
let maxz = getZClearPath(
|
let maxz = getZClearPath(
|
||||||
terrain,
|
terrain,
|
||||||
lastPoint.x,
|
lastPoint.x - wmx,
|
||||||
lastPoint.y,
|
lastPoint.y - wmy,
|
||||||
point.x,
|
point.x - wmx,
|
||||||
point.y,
|
point.y - wmy,
|
||||||
Math.max(point.z, lastPoint.z),
|
Math.max(point.z, lastPoint.z),
|
||||||
zadd,
|
zadd,
|
||||||
maxToolDiam/2,
|
maxToolDiam/2,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue