fix bug with empty output array
This commit is contained in:
parent
27eca430f9
commit
799efce680
1 changed files with 1 additions and 1 deletions
|
|
@ -486,7 +486,7 @@
|
||||||
|
|
||||||
// last layer/move is to zmax
|
// last layer/move is to zmax
|
||||||
// injected into the last layer generated
|
// injected into the last layer generated
|
||||||
if (lastPoint)
|
if (lastPoint && newOutput.length)
|
||||||
addOutput(newOutput[newOutput.length-1], printPoint = lastPoint.clone().setZ(zmax_outer), 0, 0, tool.getNumber());
|
addOutput(newOutput[newOutput.length-1], printPoint = lastPoint.clone().setZ(zmax_outer), 0, 0, tool.getNumber());
|
||||||
|
|
||||||
// replace output single flattened layer with all points
|
// replace output single flattened layer with all points
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue