From f10024c28d607ba6b2d2b77af06a410add2e1dd6 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 12 Jul 2025 16:08:34 -0400 Subject: [PATCH] fix slice progress for topo --- src/kiri/mode/cam/slice.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kiri/mode/cam/slice.js b/src/kiri/mode/cam/slice.js index c23b1786..6abf19f5 100644 --- a/src/kiri/mode/cam/slice.js +++ b/src/kiri/mode/cam/slice.js @@ -265,10 +265,14 @@ export async function cam_slice(settings, widget, onupdate, ondone) { // silently preface op list with OpShadow if (isIndexed) { - if (activeOps.length === 0 || activeOps[0].type !== 'index') + if (activeOps.length === 0 || activeOps[0].type !== 'index') { opList.push(new OPS.index(state, { type: "index", index: 0 })); + opTot++; + + } } else { opList.push(new OPS.shadow(state, { type: "shadow", silent: true })); + opTot++; } // determing # of steps and step weighting for progress bar