rework tab cutting to work with indexed rotations

This commit is contained in:
Stewart Allen 2025-11-27 10:32:41 -05:00
commit 6af1bda1ab
3 changed files with 72 additions and 11 deletions

View file

@ -17,7 +17,7 @@ export class OpIndex extends CamOp {
throw 'index op requires indexed stock';
}
let { widget, updateSlicer, computeShadows, setAxisIndex } = state;
this.degrees = setAxisIndex(op.degrees, op.absolute);
this.degrees = await setAxisIndex(op.degrees, op.absolute);
// force recompute of topo
widget.topo = undefined;
updateSlicer();