summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorprep linden <prep@lindenlab.com>2011-01-27 17:13:08 -0500
committerprep linden <prep@lindenlab.com>2011-01-27 17:13:08 -0500
commit2e8640c3b084d00b3fa5de93b75ccaf25f2126a6 (patch)
tree0c3180c68b1d7f5bf32ab2d8233d9dcfe5206670 /indra/newview/llvoavatar.cpp
parent1b97777f1ac5505be698837d8c94a4f5ff3af786 (diff)
Optimization so that updateRiggedAttachments is not called every frame - still a WIP.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r--indra/newview/llvoavatar.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 55c5c85c21..4a6d303cdd 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -8163,12 +8163,16 @@ BOOL LLVOAvatar::updateLOD()
mNeedsSkin = TRUE;
mDrawable->clearState(LLDrawable::REBUILD_GEOMETRY);
}
- rebuildRiggedAttachments();
updateVisibility();
return res;
}
+void LLVOAvatar::updateLODRiggedAttachments( void )
+{
+ updateLOD();
+ rebuildRiggedAttachments();
+}
U32 LLVOAvatar::getPartitionType() const
{
// Avatars merely exist as drawables in the bridge partition