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

@ -359,7 +359,7 @@ export function subtract(setA, setB, outA, outB, z, minArea, opt = {}) {
function filter(from, to = []) {
from.forEach(function(poly) {
if (poly.area() >= min) {
if (poly.area() >= min && poly.length > 2) {
to.push(poly);
out.push(poly);
}