!653 修复:关闭排钻反应器时复制排钻孔位不生效

pull/653/MERGE
ZoeLeeFZ 5 years ago committed by ChenX
parent d4992e968f
commit 9db73dcedb

@ -17,8 +17,6 @@ export class DrillingReactor
this.Enable = userConfig.openDrillingReactor;
app.CommandReactor.OnCommandEnd((cmdName: string, changeObjects, createObjects) =>
{
if (!this.Enable) return;
if (cmdName === "COPY")
{
let holeGroupSet: WeakSet<ObjectId> = new WeakSet();
@ -44,8 +42,7 @@ export class DrillingReactor
}
}
}
if (ForbidReactorCmd.includes(cmdName))
if (!this.Enable || ForbidReactorCmd.includes(cmdName))
return;
let brs = [...createObjects, ...changeObjects]
.filter(e => !e.IsErase && e instanceof Board) as Board[];

Loading…
Cancel
Save