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
|
// support polygon
|
||||||
next.setZ(z);
|
next.setZ(z);
|
||||||
outputTraces([next].appendAll(next.inner || []));
|
outputTraces([next].appendAll(next.inner || []));
|
||||||
if (next.fills) {
|
if (next.fill) {
|
||||||
next.fills.forEach(function(p) { p.z = z });
|
next.fill.forEach(function(p) { p.z = z });
|
||||||
outputFills(next.fills, {fast: true});
|
outputFills(next.fill, {fast: true});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// top object
|
// top object
|
||||||
|
|
|
||||||
|
|
@ -193,7 +193,7 @@
|
||||||
sslices[index].supports = [];
|
sslices[index].supports = [];
|
||||||
}
|
}
|
||||||
sslices[index].supports.appendAll(slice.supports.map(p => {
|
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);
|
return p.move(widget.track.pos);
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -319,7 +319,7 @@
|
||||||
.addPolys(slice.supports, vopt({ offset, height }));
|
.addPolys(slice.supports, vopt({ offset, height }));
|
||||||
|
|
||||||
if (slice.supports) slice.supports.forEach(poly => {
|
if (slice.supports) slice.supports.forEach(poly => {
|
||||||
output
|
if (poly.fill) output
|
||||||
.setLayer("support", COLOR.support)
|
.setLayer("support", COLOR.support)
|
||||||
.addLines(poly.fill, vopt({ offset, height }));
|
.addLines(poly.fill, vopt({ offset, height }));
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue