summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2017-10-27 21:27:36 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2017-10-27 21:27:36 +0100
commitef0e3bfdd92bb5faea633a14487f123dfeb2f5f1 (patch)
tree16e6b1eb88920d744637a1479a420eedbeab63ea /indra/newview/llviewermessage.cpp
parentc025939e42d4c26054ff4a6eeded4b7849c74070 (diff)
SL-731, SL-779 - more diagnostics for DebugAnimatedObjects, fixed a problem with recursiveMarkForUpdate
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r--indra/newview/llviewermessage.cpp22
1 files changed, 5 insertions, 17 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index fad59aadf4..3834082f78 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -5075,18 +5075,6 @@ void process_avatar_animation(LLMessageSystem *mesgsys, void **user_data)
}
}
-// AXON Move to llviewerobject
-void recursiveMarkForUpdate(LLViewerObject *vobj, BOOL priority)
-{
- for (LLViewerObject::child_list_t::const_iterator iter = vobj->getChildren().begin();
- iter != vobj->getChildren().end(); iter++)
- {
- LLViewerObject* child = (LLViewerObject*)*iter;
- child->markForUpdate(priority);
- }
- vobj->markForUpdate(priority);
-}
-
void process_object_animation(LLMessageSystem *mesgsys, void **user_data)
{
LLUUID animation_id;
@@ -5123,14 +5111,14 @@ void process_object_animation(LLMessageSystem *mesgsys, void **user_data)
}
S32 num_blocks = mesgsys->getNumberOfBlocksFast(_PREHASH_AnimationList);
- LL_DEBUGS("AXON") << "handle object animation here, num_blocks " << num_blocks << LL_ENDL;
+ LL_DEBUGS("AXON") << "processing object animation requests, num_blocks " << num_blocks << LL_ENDL;
-#if 1
+#if 0
if (!avatarp->mPlaying)
{
avatarp->mPlaying = true;
avatarp->updateVolumeGeom();
- recursiveMarkForUpdate(avatarp->mRootVolp,TRUE);
+ avatarp->mRootVolp->recursiveMarkForUpdate(TRUE);
}
#else
if (num_blocks > 0 && !avatarp->mPlaying)
@@ -5138,7 +5126,7 @@ void process_object_animation(LLMessageSystem *mesgsys, void **user_data)
avatarp->mPlaying = true;
avatarp->updateVolumeGeom();
// AXON FIXME need to update all objects in the linkset, not just the one where animation is playing
- recursiveMarkForUpdate(avatarp->mRootVolp,TRUE);
+ avatarp->mRootVolp->recursiveMarkForUpdate(TRUE);
}
else if (num_blocks == 0 && avatarp->mPlaying)
{
@@ -5148,7 +5136,7 @@ void process_object_animation(LLMessageSystem *mesgsys, void **user_data)
avatarp->mPlaying = false;
avatarp->updateVolumeGeom();
// AXON FIXME need to update all objects in the linkset, not just the one where animation is playing
- recursiveMarkForUpdate(avatarp->mRootVolp,TRUE);
+ avatarp->mRootVolp->recursiveMarkForUpdate(TRUE);
}
#endif