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

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

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

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

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

Loading…
Cancel
Save