fix tool change detection
This commit is contained in:
parent
9c1da28b94
commit
d20e51a0dc
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ CAM.export = function(print, online) {
|
|||
newpos.z = util.round(newpos.z, decimals);
|
||||
|
||||
// on tool change
|
||||
let changeTool = out.tool != pos.t;
|
||||
let changeTool = !(out.tool && pos.t) || out.tool.id !== pos.t.id;
|
||||
if (changeTool) {
|
||||
pos.t = out.tool;
|
||||
consts.tool = pos.t.getNumber();
|
||||
|
|
|
|||
Loading…
Reference in a new issue