fix unexpected flatten error
This commit is contained in:
parent
de91ae719b
commit
5a72ad204b
1 changed files with 2 additions and 1 deletions
|
|
@ -323,7 +323,8 @@ function setContains(setA, poly) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function flatten(polys, to = [], crush) {
|
function flatten(polys, to, crush) {
|
||||||
|
to = to || [];
|
||||||
for (let poly of polys) {
|
for (let poly of polys) {
|
||||||
poly.flattenTo(to);
|
poly.flattenTo(to);
|
||||||
if (crush) poly.inner = null;
|
if (crush) poly.inner = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue