add timeline for all cnc index modes

This commit is contained in:
Stewart Allen 2024-06-02 00:17:38 -04:00
commit e055f3c157

View file

@ -103,10 +103,12 @@ CAM.init = function(kiri, api) {
return;
}
const clockOp = cp.ops.filter(op => op.type === '|')[0];
if (isIndexed && !clockOp) {
// if (isIndexed && !clockOp) {
// func.opAdd(popOp['|'].new());
// } else if (!isIndexed && clockOp) {
// func.opDel(clockOp);
if (!clockOp) {
func.opAdd(popOp['|'].new());
} else if (!isIndexed && clockOp) {
func.opDel(clockOp);
} else {
func.opRender();
}