diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-07-06 01:25:10 +0100 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-07-06 01:25:10 +0100 |
commit | f55667397e75991348fa25b6ad581a36de99acf0 (patch) | |
tree | 131f55e90c21d7c742b6e942a7f4ceba4289f038 /indra/newview/llviewermessage.cpp | |
parent | 2af5332e46b3917d6dce211e576a92d04c3eda8b (diff) |
SL-722 - handle per-object animation requests, combine for control avatar animation state.
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r-- | indra/newview/llviewermessage.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index 227c6afcb0..ba4c632586 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -5112,22 +5112,19 @@ void process_object_animation(LLMessageSystem *mesgsys, void **user_data) avatarp->mPlaying = true; avatarp->updateVolumeGeom(); } - avatarp->mSignaledAnimations.clear(); + + volp->mObjectSignaledAnimations.clear(); for( S32 i = 0; i < num_blocks; i++ ) { mesgsys->getUUIDFast(_PREHASH_AnimationList, _PREHASH_AnimID, animation_id, i); mesgsys->getS32Fast(_PREHASH_AnimationList, _PREHASH_AnimSequenceID, anim_sequence_id, i); - avatarp->mSignaledAnimations[animation_id] = anim_sequence_id; + volp->mObjectSignaledAnimations[animation_id] = anim_sequence_id; LL_DEBUGS("AXON") << "got object animation request for object " - << uuid << " animation id " << animation_id << LL_ENDL; + << uuid << " animation id " << animation_id << LL_ENDL; } - if (num_blocks >= 0) - { - LL_DEBUGS("AXON") << "process animation state changes here" << LL_ENDL; - avatarp->processAnimationStateChanges(); - } + avatarp->updateAnimations(); } |