handle step down greater than part Z height
This commit is contained in:
parent
1b0ee2a953
commit
6937e523c2
1 changed files with 1 additions and 0 deletions
|
|
@ -577,6 +577,7 @@ class OpOutline extends CamOp {
|
||||||
if (zThru) {
|
if (zThru) {
|
||||||
let last = slices[slices.length-1];
|
let last = slices[slices.length-1];
|
||||||
for (let zneg of base.util.lerp(0, zThru, op.down)) {
|
for (let zneg of base.util.lerp(0, zThru, op.down)) {
|
||||||
|
if (!last) continue;
|
||||||
let add = last.clone(true);
|
let add = last.clone(true);
|
||||||
add.tops.forEach(top => top.poly.setZ(add.z));
|
add.tops.forEach(top => top.poly.setZ(add.z));
|
||||||
add.shadow = last.shadow.clone(true);
|
add.shadow = last.shadow.clone(true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue