stop drill warnings for register ops

This commit is contained in:
bakedpotatolord 2025-06-12 10:11:04 -06:00
commit e43dd65ff5

View file

@ -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.`)
}