fix slice progress for topo

This commit is contained in:
Stewart Allen 2025-07-12 16:08:34 -04:00
commit f10024c28d

View file

@ -265,10 +265,14 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
// silently preface op list with OpShadow // silently preface op list with OpShadow
if (isIndexed) { 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 })); opList.push(new OPS.index(state, { type: "index", index: 0 }));
opTot++;
}
} else { } else {
opList.push(new OPS.shadow(state, { type: "shadow", silent: true })); opList.push(new OPS.shadow(state, { type: "shadow", silent: true }));
opTot++;
} }
// determing # of steps and step weighting for progress bar // determing # of steps and step weighting for progress bar