!600 取消异型时排钻类型被错误重置

pull/600/MERGE
ZoeLeeFZ 5 years ago committed by ChenX
parent c6297f6595
commit d79a840273

@ -160,9 +160,10 @@ export class Board extends ExtrudeSolid
this._Name = "背板"; this._Name = "背板";
} }
let defaultType = userConfig.DrillConfigs.size > 0 ? [...userConfig.DrillConfigs.keys()][0] : "不排"; let types = [...userConfig.DrillConfigs.keys(), "不排"];
this._BoardProcessOption.drillType = defaultType; let type = types.includes(this.BoardProcessOption.drillType) ? this.BoardProcessOption.drillType : types[0];
this._BoardProcessOption.highDrill = Array(4).fill(defaultType); this._BoardProcessOption.drillType = type;
this._BoardProcessOption.highDrill = Array(4).fill(type);
this.ConverToRectSolid(width, length, thickness); this.ConverToRectSolid(width, length, thickness);
this.Update(UpdateDraw.Geometry); this.Update(UpdateDraw.Geometry);

Loading…
Cancel
Save