summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-06-05 20:22:59 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-06-05 20:22:59 +0100
commit74957676fc0b05825abc3af907241479f06fa8c3 (patch)
treebee3ab9fe41b473e8be89bb683b029f5cb98367e /indra
parent55612611c679efda5d491944dee75f4768749277 (diff)
SL-694 - message changes for ObjectAnimation, more logging to validate behavior
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewermessage.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 6a6e932b4a..2b62ccd62f 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -5072,51 +5072,50 @@ void process_object_animation(LLMessageSystem *mesgsys, void **user_data)
{
LLUUID animation_id;
LLUUID uuid;
-#if 0
S32 anim_sequence_id;
-#endif
mesgsys->getUUIDFast(_PREHASH_Sender, _PREHASH_ID, uuid);
LLViewerObject *objp = gObjectList.findObject(uuid);
if (!objp)
{
- LL_WARNS("Messaging") << "Received animation state for unknown object" << uuid << LL_ENDL;
+ LL_WARNS("Messaging") << "AXON Received animation state for unknown object" << uuid << LL_ENDL;
return;
}
LLVOVolume *volp = dynamic_cast<LLVOVolume*>(objp);
if (!volp)
{
- LL_WARNS("Messaging") << "Received animation state for non-volume object" << uuid << LL_ENDL;
+ LL_WARNS("Messaging") << "AXON Received animation state for non-volume object" << uuid << LL_ENDL;
return;
}
if (!volp->isAnimatedMesh())
{
- LL_WARNS("Messaging") << "Received animation state for non-animated object" << uuid << LL_ENDL;
+ LL_WARNS("Messaging") << "AXON Received animation state for non-animated object" << uuid << LL_ENDL;
return;
}
- LL_WARNS() << "ADD SUPPORT FOR OBJECT ANIMATION HERE" << LL_ENDL;
-#if 0
S32 num_blocks = mesgsys->getNumberOfBlocksFast(_PREHASH_AnimationList);
- S32 num_source_blocks = mesgsys->getNumberOfBlocksFast(_PREHASH_AnimationSourceList);
+ LL_WARNS() << "AXON handle object animation here, num_blocks " << num_blocks << LL_ENDL;
- avatarp->mSignaledAnimations.clear();
+ //avatarp->mSignaledAnimations.clear();
+ volp->setDebugText(llformat("Animations %d", num_blocks));
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;
+ //avatarp->mSignaledAnimations[animation_id] = anim_sequence_id;
+ LL_INFOS() << "AXON got object animation request for object "
+ << uuid << " animation id " << animation_id << LL_ENDL;
}
if (num_blocks)
{
- avatarp->processAnimationStateChanges();
+ LL_INFOS() << "AXON process animation state changes here" << LL_ENDL;
+ //avatarp->processAnimationStateChanges();
}
-#endif
}