fix missing var reference

This commit is contained in:
Stewart Allen 2020-12-30 22:23:15 -05:00
commit e215b9aaef
3 changed files with 7 additions and 3 deletions

View file

@ -695,7 +695,11 @@
* @param {Polygon[]} polys
*/
function addSolidFills(slice, polys) {
slice.solids.appendAll(polys);
if (slice.solids) {
slice.solids.appendAll(polys);
} else if (polys && polys.length) {
console.log({no_solids_in: slice, for: polys})
}
};
/**