修正输入状态还原错误的问题

pull/157/MERGE
ChenX 6 years ago
parent 98912dec6a
commit a3e360c0d8

@ -43,7 +43,7 @@ export class GetEntityServices implements EditorService
prompt = prompt || {};
this.m_prompt = prompt;
this.m_Editor.m_InputState &= InputState.Entsel;
this.m_Editor.m_InputState |= InputState.Entsel;
if (!prompt.IsSelect)
this.m_Editor.m_SelectCtrl.Cancel();
@ -168,7 +168,7 @@ export class GetEntityServices implements EditorService
this.IsReady = false;
this.m_prompt = undefined;
this.m_Editor.m_InputState &= ~InputState.None;
this.m_Editor.m_InputState &= ~InputState.Entsel;
this.m_Viewer.m_PreViewer.ToSelect();
this.removeCalls.forEach(f => f());
this.removeCalls.length = 0;

@ -169,6 +169,7 @@ export class SsgetServiecs
{
if (!this.promisResolve) return;
this.promisResolve(res);
this.m_Editor.m_InputState &= ~InputState.Select;
this.m_Editor.m_SelectCtrl.Cancel();
this.m_Editor.m_SelectCtrl.m_Filter = undefined;
this.m_Editor.m_SelectCtrl.SelectType = SelectType.None;

Loading…
Cancel
Save