fix stock clear all

This commit is contained in:
Stewart Allen 2025-12-06 00:21:31 -05:00
commit b57e0e385c
3 changed files with 4 additions and 3 deletions

View file

@ -244,8 +244,8 @@ export function createPopOps() {
leave: UC.newInput(LANG.cr_lsto_s, { title: LANG.cr_lsto_l, convert: toFloat, units }),
leavez: UC.newInput(LANG.cr_lstz_s, { title: LANG.cr_lstz_l, convert: toFloat, bound: UC.bound(0, 10), units }),
sep: UC.newBlank({ class: "pop-sep" }),
all: UC.newBoolean(LANG.cr_clst_s, undefined, { title: LANG.cr_clst_l, show: hasIndexing }),
inside: UC.newBoolean(LANG.cr_olin_s, undefined, { title: LANG.cr_olin_l }),
all: UC.newBoolean(LANG.cr_clst_s, undefined, { title: LANG.cr_clst_l, show: () => !env.poppedRec.inside }),
inside: UC.newBoolean(LANG.cr_olin_s, undefined, { title: LANG.cr_olin_l, show: () => !env.poppedRec.all }),
omitthru: UC.newBoolean(LANG.co_omit_s, undefined, { title: LANG.co_omit_l }),
sep: UC.newBlank({ class: "pop-sep" }),
exp: UC.newExpand("overrides"),

View file

@ -14,7 +14,7 @@ class OpRough extends CamOp {
async slice(progress) {
let { op, state } = this;
let { shadow, tool, widget } = state;
let { shadow, stock, tool, widget } = state;
let { workarea } = state;
let cutThruBypass = op.down > workarea.top_stock - workarea.bottom_part;

View file

@ -160,6 +160,7 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
settings,
shadowAt(z) { return widget.shadowAt(z) },
slicer,
stock,
tabs,
tool,
unsafe,