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

@ -21,6 +21,8 @@
* @param {Object} [firstPoint] starting point
*/
CAM.prepare = function(widgets, settings, update) {
widgets = widgets.filter(w => !w.track.ignore && !w.meta.disabled);
const count = widgets.length;
const weight = 1/count;
const print = self.worker.print = KIRI.newPrint(settings, widgets);
@ -51,7 +53,7 @@
function prepEach(widget, settings, print, firstPoint, update) {
if (widget.camops.length === 0) return;
if (widget.camops.length === 0 || widget.meta.disabled) return;
let device = settings.device,
process = settings.process,