fix stock clear all
This commit is contained in:
parent
e0b1c4e31f
commit
b57e0e385c
3 changed files with 4 additions and 3 deletions
|
|
@ -244,8 +244,8 @@ export function createPopOps() {
|
||||||
leave: UC.newInput(LANG.cr_lsto_s, { title: LANG.cr_lsto_l, convert: toFloat, units }),
|
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 }),
|
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" }),
|
sep: UC.newBlank({ class: "pop-sep" }),
|
||||||
all: UC.newBoolean(LANG.cr_clst_s, undefined, { title: LANG.cr_clst_l, show: hasIndexing }),
|
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 }),
|
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 }),
|
omitthru: UC.newBoolean(LANG.co_omit_s, undefined, { title: LANG.co_omit_l }),
|
||||||
sep: UC.newBlank({ class: "pop-sep" }),
|
sep: UC.newBlank({ class: "pop-sep" }),
|
||||||
exp: UC.newExpand("overrides"),
|
exp: UC.newExpand("overrides"),
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ class OpRough extends CamOp {
|
||||||
|
|
||||||
async slice(progress) {
|
async slice(progress) {
|
||||||
let { op, state } = this;
|
let { op, state } = this;
|
||||||
let { shadow, tool, widget } = state;
|
let { shadow, stock, tool, widget } = state;
|
||||||
let { workarea } = state;
|
let { workarea } = state;
|
||||||
|
|
||||||
let cutThruBypass = op.down > workarea.top_stock - workarea.bottom_part;
|
let cutThruBypass = op.down > workarea.top_stock - workarea.bottom_part;
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,7 @@ export async function cam_slice(settings, widget, onupdate, ondone) {
|
||||||
settings,
|
settings,
|
||||||
shadowAt(z) { return widget.shadowAt(z) },
|
shadowAt(z) { return widget.shadowAt(z) },
|
||||||
slicer,
|
slicer,
|
||||||
|
stock,
|
||||||
tabs,
|
tabs,
|
||||||
tool,
|
tool,
|
||||||
unsafe,
|
unsafe,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue