fix output support polys

This commit is contained in:
Stewart Allen 2017-11-01 16:33:06 -04:00
commit f1cd5f90c5

View file

@ -475,7 +475,7 @@ var gs_kiri_print = exports;
if (next instanceof Polygon) {
// support polygon
next.setZ(z);
outputTraces([].appendAll(next).appendAll(next.inner || []));
outputTraces([next].appendAll(next.inner || []));
if (next.fills) {
next.fills.forEach(function(p) { p.z = z });
outputFills(next.fills, next.inner);