From 102555ceb4e7f9548e1958d097f261427d52ac58 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sun, 7 Mar 2021 15:30:26 -0500 Subject: [PATCH] allow omit thru in all outline modes --- src/mode/cam/client.js | 2 +- src/mode/cam/ops.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mode/cam/client.js b/src/mode/cam/client.js index 2bf4f16d..c21a3ccc 100644 --- a/src/mode/cam/client.js +++ b/src/mode/cam/client.js @@ -831,7 +831,7 @@ dogbones: UC.newBoolean(LANG.co_dogb_s, undefined, {title:LANG.co_dogb_l, show:(op) => { return !op.inputs.wide.checked }}), inside: UC.newBoolean(LANG.co_olin_s, undefined, {title:LANG.co_olin_l, show:(op) => { return !op.inputs.outside.checked }}), outside: UC.newBoolean(LANG.co_olot_s, undefined, {title:LANG.co_olot_l, show:(op) => { return !op.inputs.inside.checked }}), - omitthru: UC.newBoolean(LANG.co_omit_s, undefined, {title:LANG.co_omit_l, show:(op) => { return op.inputs.outside.checked }}), + omitthru: UC.newBoolean(LANG.co_omit_s, undefined, {title:LANG.co_omit_l, xshow:(op) => { return op.inputs.outside.checked }}), wide: UC.newBoolean(LANG.co_wide_s, undefined, {title:LANG.co_wide_l, show:(op) => { return !op.inputs.inside.checked }}) }; diff --git a/src/mode/cam/ops.js b/src/mode/cam/ops.js index 0c8d515a..4174ae21 100644 --- a/src/mode/cam/ops.js +++ b/src/mode/cam/ops.js @@ -467,7 +467,7 @@ tops = tshadow; } - if (op.outside && op.omitthru) { + if (op.omitthru) { // eliminate thru holes from shadow for (let hole of thruHoles) { for (let top of tops) {