restrict updateIndex to CAM mode
This commit is contained in:
parent
a0b749ea21
commit
283f2d081a
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue