fix threaded clipping with inner polys

This commit is contained in:
Stewart Allen 2022-10-16 00:52:57 -04:00
commit d4e867fd2d

View file

@ -153,7 +153,7 @@ kiri.minions = {
minwork.queue({
cmd: "clip",
polys: codec.encode(polys.map(poly => codec.encodePointArray2D(poly.points, state)), state),
polys: codec.encode(POLY.flatten(polys).map(poly => codec.encodePointArray2D(poly.points, state)), state),
lines: codec.encode(lines.map(array => codec.encodePointArray2D(array, state)), state),
z: slice.z
}, data => {