fix first poly out color. eliminate dup poly out

This commit is contained in:
Stewart Allen 2020-11-09 10:51:32 -05:00
commit e6f4382b30
2 changed files with 5 additions and 2 deletions

View file

@ -193,6 +193,9 @@
}
} else {
cur.paths.push({ index, faces, z: poly.getZ() });
if (opts.color) {
cur.cpath = [ Object.assign({ start: 0, count: Infinity }, opts.color) ];
}
}
this.stats.contour++;
});