add widget disable toggle. bump rev 3.2.D2

This commit is contained in:
Stewart Allen 2022-01-24 21:54:50 -05:00
commit a2c282a072
16 changed files with 100 additions and 39 deletions

View file

@ -98,9 +98,11 @@
FDM.sliceAll = function(settings, onupdate) {
// future home of brim and anchor generation
let widgets = Object.values(KIRI.worker.cache).sort((a,b) => {
return a.slices[0].z - b.slices[0].z
});
let widgets = Object.values(KIRI.worker.cache)
.filter(w => !w.meta.disabled)
.sort((a,b) => {
return a.slices[0].z - b.slices[0].z
});
// ignore first widget
widgets.shift();
// count extruders used