!2761 优化:排钻反应器排钻顺序同步排钻命令顺序

Merge pull request !2761 from 林三/op_drill_reactor
pull/2812/head
林三 4 months ago committed by ChenX
parent 6068cfa1a8
commit e6982eb69c

@ -20,9 +20,6 @@ export class DrawDrilling implements Command
let ens = brsRes.SelectSet.SelectEntityList as Board[];
//先画的板先排钻
ens.sort((en1, en2) => { return en1.objectId.Index - en2.objectId.Index; });
const tool = DrawDrillingTool.GetInstance();
await tool.ClassifyAndDrilling(ens);

@ -1424,6 +1424,9 @@ export class DrawDrillingTool extends Singleton
brList = brList.filter(br => !br.DrillLock); //锁定排钻的板不参与计算
if (brList.length < 2) return;
//先画的板先排钻
brList.sort((en1, en2) => { return en1.objectId.Index - en2.objectId.Index; });
//清理掉已经存在的排钻
this.ClearExitDrilling(brList);

Loading…
Cancel
Save