Load workspace should activate the graph by default. (#7389)

Signed-off-by: rhhong <rhhong@amazon.com>
This commit is contained in:
Roman
2022-02-03 12:08:15 -08:00
committed by GitHub
parent dea89a7539
commit 2560d6b41e
@@ -344,8 +344,9 @@ namespace EMStudio
if (itActivationIndices->second.m_animGraphCommandIndex != -1
&& itActivationIndices->second.m_motionSetCommandIndex != -1)
{
commandString = AZStd::string::format("ActivateAnimGraph -actorInstanceID %%LASTRESULT%d%% -animGraphID %%LASTRESULT%d%% -motionSetID %%LASTRESULT%d%% -visualizeScale %f\n",
(commandIndex - itActivationIndices->second.m_actorInstanceCommandIndex),
// Since the actor instance will be created by the component, we pass in -1 as the actor instance id so the activate anim graph command
// will pick up the first available actor instance.
commandString = AZStd::string::format("ActivateAnimGraph -actorInstanceID -1 -animGraphID %%LASTRESULT%d%% -motionSetID %%LASTRESULT%d%% -visualizeScale %f\n",
(commandIndex - itActivationIndices->second.m_animGraphCommandIndex),
(commandIndex - itActivationIndices->second.m_motionSetCommandIndex),
animGraphInstance->GetVisualizeScale());