fix null end layer bug
This commit is contained in:
parent
c088b7651e
commit
7e2d6bc060
4 changed files with 7 additions and 4 deletions
|
|
@ -357,7 +357,7 @@ var gs_kiri_fdm = exports;
|
|||
layer++;
|
||||
update(layer / maxLayers);
|
||||
// retract after last layer
|
||||
if (layer === maxLayers) {
|
||||
if (layer === maxLayers && layerout.length) {
|
||||
layerout.last().retract = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue