fix force z max condition that could cause part collision
This commit is contained in:
parent
0f9e3c4f03
commit
905f0392f6
1 changed files with 2 additions and 1 deletions
|
|
@ -371,11 +371,12 @@ function prepEach(widget, settings, print, firstPoint, update) {
|
|||
maxZdelta = Math.max(maxz - point.z, maxz - lastPoint.z),
|
||||
mustGoUp = maxZdelta >= tolerance,
|
||||
clearz = maxz;
|
||||
let zIsBelow = point.z <= maxz;
|
||||
if (zmax_force) {
|
||||
clearz = maxz = zmax + zadd;
|
||||
zIsBelow = true;
|
||||
}
|
||||
// up if any point between higher than start/outline, go up first
|
||||
const zIsBelow = point.z <= maxz;
|
||||
if (mustGoUp || zIsBelow) {
|
||||
const zClearance = clearz + ztOff;
|
||||
if (zIsBelow) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue