fix unexpected flatten error

This commit is contained in:
Stewart Allen 2024-08-12 20:11:51 -04:00
commit 5a72ad204b

View file

@ -323,7 +323,8 @@ function setContains(setA, poly) {
return false;
}
function flatten(polys, to = [], crush) {
function flatten(polys, to, crush) {
to = to || [];
for (let poly of polys) {
poly.flattenTo(to);
if (crush) poly.inner = null;