diff --git a/src/kiri/client.js b/src/kiri/client.js index 8d8068fa..d843b5ef 100644 --- a/src/kiri/client.js +++ b/src/kiri/client.js @@ -105,21 +105,16 @@ KIRI.work = { }, config: function(obj) { - send("config", obj, function(reply) { - // console.log({config:reply}); - }); + send("config", obj, function(reply) { }); }, clear: function(widget) { - send("clear", widget ? {id:widget.id} : {}, function(reply) { - syncd = {}; - }); + syncd = {}; + send("clear", widget ? {id:widget.id} : {}, function(reply) { }); }, snap: function(data) { - send("snap", data, function(reply) { - // console.log({snap:reply}) - }); + send("snap", data, function(reply) { }); }, // widget sync diff --git a/src/mode/cam/driver.js b/src/mode/cam/driver.js index 6c4a7263..27560cbe 100644 --- a/src/mode/cam/driver.js +++ b/src/mode/cam/driver.js @@ -42,7 +42,7 @@ if (KIRI.worker) KIRI.worker.cam_traces = function(data, send) { const { settings } = data; - const widgets = Object.values(cache); + const widgets = Object.values(wcache); const fresh = widgets.filter(widget => CAM.traces(settings, widget)); send.done(KIRI.codec.encode(fresh.map(widget => { return { id: widget.id, diff --git a/src/mode/cam/ops.js b/src/mode/cam/ops.js index 53ab28a1..a302f048 100644 --- a/src/mode/cam/ops.js +++ b/src/mode/cam/ops.js @@ -1096,7 +1096,7 @@ let terrain = slicer.slice(tzindex, { each: (data, index, total) => { tshadow = POLY.union(tshadow.slice().appendAll(data.tops), 0.01, true); tslices.push(data.slice); - if (true) { + if (false) { const slice = data.slice; sliceAll.push(slice); slice.output()