fix area op exit with empty z list

This commit is contained in:
Stewart Allen 2026-01-05 09:44:44 -05:00
commit 9531fafd1d
2 changed files with 3 additions and 0 deletions

View file

@ -75,6 +75,7 @@ function checkSeed(then) {
setTimeout(() => { api.space.save(true) },500);
then();
api.help.show();
sdb[LAST] = version;
});
return true;
}

View file

@ -169,6 +169,8 @@ class OpArea extends CamOp {
let zinc = 1 / zs.length;
let lzo;
if (!zs.length) break;
outer: for (;;)
for (let z of zs) {
let slice = newLayer(z);