fix support infill

This commit is contained in:
Stewart Allen 2020-11-22 20:21:41 -05:00
commit 3524bce930
3 changed files with 5 additions and 5 deletions

View file

@ -193,7 +193,7 @@
sslices[index].supports = [];
}
sslices[index].supports.appendAll(slice.supports.map(p => {
if (p.fills) p.fills.forEach(p => p.move(widget.track.pos));
if (p.fill) p.fill.forEach(p => p.move(widget.track.pos));
return p.move(widget.track.pos);
}));
});

View file

@ -319,7 +319,7 @@
.addPolys(slice.supports, vopt({ offset, height }));
if (slice.supports) slice.supports.forEach(poly => {
output
if (poly.fill) output
.setLayer("support", COLOR.support)
.addLines(poly.fill, vopt({ offset, height }));
})