fix slice first height, settings loading
This commit is contained in:
parent
f1e17644da
commit
993170a75b
6 changed files with 31 additions and 6 deletions
|
|
@ -106,7 +106,17 @@
|
|||
}
|
||||
|
||||
function onSliceDone(slices) {
|
||||
slices = slices.filter(slice => slice.tops.length);
|
||||
// slices = slices.filter(slice => slice.tops.length);
|
||||
// remove all empty slices above part but leave below
|
||||
// for multi-part (multi-extruder) setups where the void is ok
|
||||
let found = false;
|
||||
slices = slices.reverse().filter(slice => {
|
||||
if (slice.tops.length) {
|
||||
return found = true;
|
||||
} else {
|
||||
return found;
|
||||
}
|
||||
}).reverse();
|
||||
|
||||
widget.slices = slices;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue