From e43dd65ff5bdca4a022cb2ef4791471a9444c377 Mon Sep 17 00:00:00 2001 From: bakedpotatolord Date: Thu, 12 Jun 2025 10:11:04 -0600 Subject: [PATCH] stop drill warnings for register ops --- src/kiri-mode/cam/client.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kiri-mode/cam/client.js b/src/kiri-mode/cam/client.js index 94b44438..dd21d25f 100644 --- a/src/kiri-mode/cam/client.js +++ b/src/kiri-mode/cam/client.js @@ -1968,10 +1968,12 @@ function createPopOp(type, map) { const settings = conf.get(); const {tool} = new CAM.Tool(settings,op.rec.tool); //get tool by id const opType = op.rec.type - if( opType != "drill" && tool.type == "drill"){ + const drillOrRegister = opType == "drill" || opType == "register" + + if ( !drillOrRegister && tool.type == "drill"){ alerts.show(`Warning: Drills should not be used for ${opType} operations.`) } - else if( opType == "drill" && tool.type != "drill"){ + else if ( drillOrRegister && tool.type != "drill"){ alerts.show(`Warning: Only drills should be used for drilling operations.`) }