fix bug when layer has not output

This commit is contained in:
Stewart Allen 2021-02-08 02:03:40 -05:00
commit a8a08d8839

View file

@ -408,7 +408,7 @@
layerout.appendAll(tmpout); layerout.appendAll(tmpout);
lastOut = slice; lastOut = slice;
lastExt = lastOut.ext lastExt = lastOut.ext
if (layerRetract) { if (layerRetract && layerout.length) {
layerout.last().retract = true; layerout.last().retract = true;
} }
} }