fix latent layer retract detection

This commit is contained in:
Stewart Allen 2021-02-09 13:09:56 -05:00
commit dc55da0232
2 changed files with 18 additions and 5 deletions

View file

@ -538,7 +538,15 @@
}
function retract() {
if (preout.length) preout.last().retract = true;
if (preout.length) {
preout.last().retract = true;
} else if (output.length) {
output.last().retract = true;
} else if (opt.pretract) {
opt.pretract();
} else {
console.log('unable to retract. no preout or output');
}
}
function intersectsTop(p1, p2) {