fix drill marking with latent thru setting

This commit is contained in:
Stewart Allen 2026-04-09 08:10:27 -04:00
commit 94c932e8f9
2 changed files with 2 additions and 2 deletions

View file

@ -598,7 +598,7 @@ export function createPopOps() {
sep: UC.newBlank({ class: "pop-sep" }),
thru: UC.newInput(LANG.cd_dtru_s, { title: LANG.cd_dtru_l, convert: toFloat, units, show: () => !env.poppedRec.mark }),
precision: UC.newInput(LANG.cd_prcn_s, { title: LANG.cd_prcn_l, convert: toFloat, units, show: () => !env.poppedRec.mark }),
sep: UC.newBlank({ class: "pop-sep", }),
sep: UC.newBlank({ class: "pop-sep", show: () => !env.poppedRec.mark }),
actions: UC.newRow([
UC.newButton(LANG.select, () => selectHoles(true), { title: LANG.cd_seli_l }),
UC.newButton(LANG.cd_sela_s, () => selectHoles(false), { title: LANG.cd_sela_l })

View file

@ -43,7 +43,7 @@ class OpDrill extends CamOp {
if (zBottom) drill.zBottom = Math.max(zBottom, drill.zBottom);
// for thru holes, follow z thru when set
if ((op.thru > 0)) {
if (op.thru > 0 && !op.mark) {
drill.zBottom -= op.thru;
}