stop drill warnings for register ops
This commit is contained in:
parent
de541e6dd8
commit
e43dd65ff5
1 changed files with 4 additions and 2 deletions
|
|
@ -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.`)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue