add widget disable toggle. bump rev 3.2.D2
This commit is contained in:
parent
5788b800a8
commit
a2c282a072
16 changed files with 100 additions and 39 deletions
|
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
FDM.prepare = function(widgets, settings, update) {
|
||||
// filter ignored widgets
|
||||
widgets = widgets.filter(w => !w.track.ignore);
|
||||
widgets = widgets.filter(w => !w.track.ignore && !w.meta.disabled);
|
||||
|
||||
let render = settings.render !== false,
|
||||
{ device, process, controller, bounds, mode } = settings,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue