another open top corner case. darken slice outline
This commit is contained in:
parent
ca87a972c1
commit
31c4da5123
1 changed files with 6 additions and 1 deletions
|
|
@ -71,6 +71,11 @@ let gs_kiri_sla = exports;
|
|||
add: !process.slaOpenTop
|
||||
}, function(slices) {
|
||||
widget.slices = slices.filter(slice => slice.tops.length);
|
||||
if (process.slaOpenTop) {
|
||||
// with closed top, filter out any empty above slices
|
||||
// that will generate a diff producing a solid projection
|
||||
slices = widget.slices;
|
||||
}
|
||||
// reset for solids and support projections
|
||||
slices.forEach(function(slice) {
|
||||
slice.invalidateFill();
|
||||
|
|
@ -244,7 +249,7 @@ let gs_kiri_sla = exports;
|
|||
}
|
||||
let polys = slice.solids.unioned;
|
||||
polys.forEach(poly => {
|
||||
layer.poly(poly, 0x222222, true);
|
||||
layer.poly(poly, 0, true);
|
||||
layer.solid(poly, 0x00bbee);
|
||||
count++;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue