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),
|
maxZdelta = Math.max(maxz - point.z, maxz - lastPoint.z),
|
||||||
mustGoUp = maxZdelta >= tolerance,
|
mustGoUp = maxZdelta >= tolerance,
|
||||||
clearz = maxz;
|
clearz = maxz;
|
||||||
|
let zIsBelow = point.z <= maxz;
|
||||||
if (zmax_force) {
|
if (zmax_force) {
|
||||||
clearz = maxz = zmax + zadd;
|
clearz = maxz = zmax + zadd;
|
||||||
|
zIsBelow = true;
|
||||||
}
|
}
|
||||||
// up if any point between higher than start/outline, go up first
|
// up if any point between higher than start/outline, go up first
|
||||||
const zIsBelow = point.z <= maxz;
|
|
||||||
if (mustGoUp || zIsBelow) {
|
if (mustGoUp || zIsBelow) {
|
||||||
const zClearance = clearz + ztOff;
|
const zClearance = clearz + ztOff;
|
||||||
if (zIsBelow) {
|
if (zIsBelow) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue