fix slice first height, settings loading

This commit is contained in:
Stewart Allen 2020-06-09 23:19:51 -04:00
commit 993170a75b
6 changed files with 31 additions and 6 deletions

View file

@ -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;