优化:避免封边修改触发排钻反应器,优化性能

pull/1550/head
ChenX 3 years ago
parent 1dc9de6b91
commit 0bf96370cd

@ -25,6 +25,7 @@ const ForbidReactorCmd = new Set([
CommandNames.ShowProcessingGroupModal,
CommandNames.,
CommandNames.,
CommandNames.,
]);
export class DrillingReactor

@ -243,5 +243,6 @@ export enum CommandNames
M0 = "M0",
PackageGroupMove0 = "PACKAGEGROUPMOVE0",
ApplyMtl = "APPLYMTL",//应用材质
= "封边属性编辑"
}

@ -1,13 +1,14 @@
import { Intent } from "@blueprintjs/core";
import { observable } from "mobx";
import { log } from "util";
import { CommandNames } from "../../../Common/CommandNames";
import { safeEval } from "../../../Common/eval";
import { Board } from "../../../DatabaseServices/Entity/Board";
import { CommandWrap } from "../../../Editor/CommandMachine";
import { GetBoardSealingCurves, HandleRectBoardSealingData, GetBoardHighSeal } from "../../../GraphicsSystem/CalcEdgeSealing";
import { GetBoardHighSeal, GetBoardSealingCurves, HandleRectBoardSealingData } from "../../../GraphicsSystem/CalcEdgeSealing";
import { ShowLinesToaster } from "../../Components/Toaster";
import { IHighSealedItem } from "../BoardInterface";
import { BoardEdgesEditor, Board_Editor_Key } from "./BoardEdgesEditor";
import { Intent } from "@blueprintjs/core";
export class SealingStore extends BoardEdgesEditor
{
@ -89,11 +90,12 @@ export class SealingStore extends BoardEdgesEditor
for (let [b, cus] of this._brMap)
{
let data = this._dataMap.get(b);
HandleRectBoardSealingData(b, data, cus.map(c => c.ApplyMatrix(b.OCSInv)));
let ocsInv = b.OCSInv;
HandleRectBoardSealingData(b, data, cus.map(c => c.ApplyMatrix(ocsInv)));
b.BoardProcessOption.highSealed = data;
}
this._dataMap.clear();
}, "封边属性编辑");
}, CommandNames.);
}
}

Loading…
Cancel
Save