summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2016-08-24 10:50:23 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2016-08-24 10:50:23 -0400
commit2de32f2485a5a9c570f4437056bc1486f6fe8da0 (patch)
treef7478369c06b3c1c2c1951acf12d11458f788da6 /indra/newview/llvoavatar.cpp
parentf9be47d6695a7aab4bdf273043bcc5129c934c27 (diff)
SL-427 - trying less frequent computeBodySize() updates to avoid 'camera at sea' and related issues.
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r--indra/newview/llvoavatar.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 946db6713e..9a26d8f78f 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -3605,7 +3605,8 @@ BOOL LLVOAvatar::updateCharacter(LLAgent &agent)
// that affect the body size calculation, computed body size
// can get stale much more easily. Simplest fix is to update
// it frequently.
- computeBodySize();
+ // SL-427: this appears to be too frequent, moving to only do on animation state change.
+ // computeBodySize();
// correct for the fact that the pelvis is not necessarily the center
// of the agent's physical representation
@@ -5093,6 +5094,12 @@ void LLVOAvatar::processAnimationStateChanges()
//-----------------------------------------------------------------------------
BOOL LLVOAvatar::processSingleAnimationStateChange( const LLUUID& anim_id, BOOL start )
{
+ // SL-402, SL-427 - we need to update body size often enough to
+ // keep appearances in sync, but not so often that animations
+ // cause constant jiggling of the body or camera. Possible
+ // compromise is to do it on animation changes:
+ computeBodySize();
+
BOOL result = FALSE;
if ( start ) // start animation