fix sla widget offset with multi-widget

This commit is contained in:
Stewart Allen 2020-05-16 20:20:23 -04:00
commit c3fd40d205

View file

@ -1347,7 +1347,9 @@ let gs_kiri_sla = exports;
let polys = slice.solids.unioned; let polys = slice.solids.unioned;
if (!polys) polys = slice.tops.map(t => t.poly); if (!polys) polys = slice.tops.map(t => t.poly);
if (slice.supports) polys.appendAll(slice.supports); if (slice.supports) polys.appendAll(slice.supports);
array.appendAll(polys); array.appendAll(polys.map(poly => {
return poly.clone(true).move(widget.track.pos);
}));
count += polys.length; count += polys.length;
} }
}); });