优化:避免板边编辑重入

pull/1285/head
ChenX 4 years ago
parent 880f4b7c12
commit 9a4fad56ba

@ -62,8 +62,11 @@ export class BoardEdgesEditor
async EndEditor(cancel = false) async EndEditor(cancel = false)
{ {
if (!this._editoring) if (!this._editoring) return;
return;
//马上标记为否,避免重入
this._editoring = false;
app.Viewer.CameraCtrl.ReadFile(this._cameraFiler); app.Viewer.CameraCtrl.ReadFile(this._cameraFiler);
this.ParseData(); this.ParseData();
await app.Editor.ModalManage.EndExecingCmd(); await app.Editor.ModalManage.EndExecingCmd();
@ -73,7 +76,6 @@ export class BoardEdgesEditor
AppToaster.clear(); AppToaster.clear();
this._brMap.clear(); this._brMap.clear();
this._editoring = false;
this._cameraFiler = undefined; this._cameraFiler = undefined;
app.Editor.MaskManage.Clear(); app.Editor.MaskManage.Clear();

Loading…
Cancel
Save