From 3916ce839118d35a2538dca03554a922be0de5a0 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Mon, 13 Feb 2023 23:16:21 -0500 Subject: [PATCH] enable lathe for all. disable lathe ops when switching to non-indexed mode --- src/kiri-mode/cam/client.js | 6 +++--- web/kiri/index.css | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/kiri-mode/cam/client.js b/src/kiri-mode/cam/client.js index 1409c5f6..ecb38f2c 100644 --- a/src/kiri-mode/cam/client.js +++ b/src/kiri-mode/cam/client.js @@ -296,9 +296,6 @@ CAM.init = function(kiri, api) { } return func.opAddContour(caxis); case "lathe": - if (!settings.controller.danger) { - return; - } let laxis = "X"; for (let op of current.process.ops) { if (op.type === "lathe" && op.axis === "X") { @@ -508,6 +505,9 @@ CAM.init = function(kiri, api) { indexing = false; } let el = $(id); + if (!isIndexed && type === 'lathe') { + rec.disabled = true; + } if (!hasSharedArrays && (type === 'contour' || type === 'lathe')) { rec.disabled = true; } diff --git a/web/kiri/index.css b/web/kiri/index.css index d1e65f0a..6364b0f8 100644 --- a/web/kiri/index.css +++ b/web/kiri/index.css @@ -964,9 +964,6 @@ th, tr, td, label { right: 0; top: 0; } -#cam-lathe { - color: #888; -} #cam-lathe:hover { background-color: rgba(0,0,0,0) !important; }