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 === '|') { 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