restrict updateIndex to CAM mode

This commit is contained in:
Stewart Allen 2022-11-14 18:29:27 -05:00
commit 283f2d081a

View file

@ -410,9 +410,13 @@ CAM.init = function(kiri, api) {
});
function updateIndex() {
let oplist = current.process.ops;
if (!(isCamMode && oplist)) {
return;
}
let index = 0;
let indexing = false;
for (let op of current.process.ops) {
for (let op of oplist) {
if (op.type === '|') {
break;
}