fix sla widget offset with multi-widget
This commit is contained in:
parent
81f1e6d116
commit
c3fd40d205
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue