fix disabling index op

This commit is contained in:
Stewart Allen 2025-05-25 18:45:57 -06:00
commit 4593efd8ea

View file

@ -479,7 +479,7 @@ CAM.init = function(kiri, api) {
if (op.type === '|') {
break;
}
if (op.type === 'index') {
if (op.type === 'index' && !op.disabled) {
indexing = true;
if (op.absolute) {
index = op.degrees
@ -641,6 +641,9 @@ CAM.init = function(kiri, api) {
el.classList.remove("disabled");
}
}
if (isIndexed) {
updateIndex();
}
return true;
}
// duplicate op