fix traces and surface selection when using the flip operation

This commit is contained in:
Stewart Allen 2023-03-09 13:45:07 -05:00
commit 7c7229451e
2 changed files with 2 additions and 0 deletions

View file

@ -747,6 +747,7 @@ CAM.init = function(kiri, api) {
}
// clear traces cache
CAM.traces_clear();
kiri.client.clear();
flipping = false;
process.ops = op2;
process.op2 = ops;

View file

@ -139,6 +139,7 @@ kiri.load(api => {
kiri.worker.cam_traces_clear = function(data, send) {
for (let widget of Object.values(kiri.worker.cache)) {
delete widget.traces;
delete widget.topo;
}
send.done({});
};