fix nested trace elements when clearing (poly area bug), fix shadowZ poly union, fix hidden cam animate

This commit is contained in:
Stewart Allen 2025-07-12 14:09:35 -04:00
commit 7d3b210ed9
8 changed files with 35 additions and 12 deletions

View file

@ -421,8 +421,13 @@ function newDiv(opt = {}) {
(opt.addto || addTo).appendChild(div);
if (opt.addto) lastDiv = addTo = div;
if (opt.class) div.setAttribute('class', opt.class);
lastGroup?.push(div);
div._group = groupName;
if (opt.group !== false) {
lastGroup?.push(div);
div._group = groupName;
} else {
lastGroup = undefined;
groupName = undefined;
}
return div;
}