fix disabling index op
This commit is contained in:
parent
fdc61bd09a
commit
4593efd8ea
1 changed files with 4 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ CAM.init = function(kiri, api) {
|
||||||
if (op.type === '|') {
|
if (op.type === '|') {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (op.type === 'index') {
|
if (op.type === 'index' && !op.disabled) {
|
||||||
indexing = true;
|
indexing = true;
|
||||||
if (op.absolute) {
|
if (op.absolute) {
|
||||||
index = op.degrees
|
index = op.degrees
|
||||||
|
|
@ -641,6 +641,9 @@ CAM.init = function(kiri, api) {
|
||||||
el.classList.remove("disabled");
|
el.classList.remove("disabled");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (isIndexed) {
|
||||||
|
updateIndex();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// duplicate op
|
// duplicate op
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue