修复:避免在锁定查看模式中执行命令

pull/907/MERGE
ChenX 5 years ago
parent f59c3a18ad
commit b48039d332

@ -25,11 +25,12 @@ class CommandMachine
private m_CommandNameList = new Set<string>();
async ExecCommand(cmdName: string)
{
if (CommandState.CommandIng)
return;
if (app.Viewer.IsLookSelect)
return;
if (this.CommandMap.has(cmdName))
{
if (CommandState.CommandIng)
return;
arrayRemoveOnce(app.Editor.CommandStore.historyCmdList, cmdName);
app.Editor.CommandStore.historyCmdList.push(cmdName);

Loading…
Cancel
Save