From 2de32f2485a5a9c570f4437056bc1486f6fe8da0 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Wed, 24 Aug 2016 10:50:23 -0400 Subject: SL-427 - trying less frequent computeBodySize() updates to avoid 'camera at sea' and related issues. --- indra/newview/llvoavatar.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'indra/newview/llvoavatar.cpp') 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 -- cgit v1.2.3