Clear the recorder when deactivating the anim graph. (#4201)

Signed-off-by: rhhong <rhhong@amazon.com>
monroegm-disable-blank-issue-2
Roman 4 years ago committed by GitHub
parent b3db885ae5
commit 59f79ad0de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -715,12 +715,15 @@ namespace CommandSystem
// restore the workspace dirty flag // restore the workspace dirty flag
GetCommandManager()->SetWorkspaceDirtyFlag(m_oldWorkspaceDirtyFlag); GetCommandManager()->SetWorkspaceDirtyFlag(m_oldWorkspaceDirtyFlag);
AZStd::string resultString; MCore::CommandGroup commandGroup;
GetCommandManager()->ExecuteCommandInsideCommand("Unselect -animGraphIndex SELECT_ALL", resultString); commandGroup.AddCommandString("RecorderClear");
commandGroup.AddCommandString("Unselect -animGraphIndex SELECT_ALL");
if (animGraph) if (animGraph)
{ {
GetCommandManager()->ExecuteCommandInsideCommand(AZStd::string::format("Select -animGraphID %d", animGraph->GetID()), resultString); commandGroup.AddCommandString(AZStd::string::format("Select -animGraphID %d", animGraph->GetID()));
} }
AZStd::string resultString;
GetCommandManager()->ExecuteCommandGroupInsideCommand(commandGroup, resultString);
return true; return true;
} }

Loading…
Cancel
Save