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

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

@ -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());

Loading…
Cancel
Save