fix support infill
This commit is contained in:
parent
d7a735335b
commit
3524bce930
3 changed files with 5 additions and 5 deletions
|
|
@ -696,9 +696,9 @@
|
|||
// support polygon
|
||||
next.setZ(z);
|
||||
outputTraces([next].appendAll(next.inner || []));
|
||||
if (next.fills) {
|
||||
next.fills.forEach(function(p) { p.z = z });
|
||||
outputFills(next.fills, {fast: true});
|
||||
if (next.fill) {
|
||||
next.fill.forEach(function(p) { p.z = z });
|
||||
outputFills(next.fill, {fast: true});
|
||||
}
|
||||
} else {
|
||||
// top object
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 }));
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue