fix worker cache reference bug in cam driver
This commit is contained in:
parent
25ae74d436
commit
032bb0c626
2 changed files with 3 additions and 1 deletions
1
notes.md
1
notes.md
|
|
@ -73,6 +73,7 @@
|
||||||
* `B` need to force cut line at synthetic z bottom (midlines, etc)
|
* `B` need to force cut line at synthetic z bottom (midlines, etc)
|
||||||
* `B` contour does not honor clip to stock
|
* `B` contour does not honor clip to stock
|
||||||
|
|
||||||
|
* `F` add `plunge max` to contouring that can override z feed limit
|
||||||
* `F` roughing flats should be constrained to flat region
|
* `F` roughing flats should be constrained to flat region
|
||||||
* `F` limit cut depth to flute length of selected tool (or warn)
|
* `F` limit cut depth to flute length of selected tool (or warn)
|
||||||
* `F` add ease-down support to trace op
|
* `F` add ease-down support to trace op
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// dep: main.kiri
|
// dep: main.kiri
|
||||||
|
// use: kiri.codec
|
||||||
gapp.register("kiri-mode.cam.driver", [], (root, exports) => {
|
gapp.register("kiri-mode.cam.driver", [], (root, exports) => {
|
||||||
|
|
||||||
const { kiri } = root;
|
const { kiri } = root;
|
||||||
|
|
@ -40,7 +41,7 @@ kiri.load(api => {
|
||||||
if (kiri.worker)
|
if (kiri.worker)
|
||||||
kiri.worker.cam_traces = function(data, send) {
|
kiri.worker.cam_traces = function(data, send) {
|
||||||
const { settings, single } = data;
|
const { settings, single } = data;
|
||||||
const widgets = Object.values(wcache);
|
const widgets = Object.values(kiri.worker.cache);
|
||||||
const fresh = widgets.filter(widget => CAM.traces(settings, widget, single));
|
const fresh = widgets.filter(widget => CAM.traces(settings, widget, single));
|
||||||
send.done(kiri.codec.encode(fresh.map(widget => { return {
|
send.done(kiri.codec.encode(fresh.map(widget => { return {
|
||||||
id: widget.id,
|
id: widget.id,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue