From 637c05cb5419375f63a5cf970ab6e8139b82ac57 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 1 Aug 2021 12:42:50 -0400 Subject: [PATCH] fix null polys --- src/geo/polygons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geo/polygons.js b/src/geo/polygons.js index 5f66b1c3..f53a3279 100644 --- a/src/geo/polygons.js +++ b/src/geo/polygons.js @@ -57,7 +57,7 @@ return polys; } - function toClipper(polys) { + function toClipper(polys = []) { let out = []; for (let poly of polys) { poly.toClipper(out);