diff options
author | prep <prep@lindenlab.com> | 2010-11-10 14:46:36 -0500 |
---|---|---|
committer | prep <prep@lindenlab.com> | 2010-11-10 14:46:36 -0500 |
commit | 2551bfb1b523c1ce2459e0139829a211c36e1bcc (patch) | |
tree | 2cbe94d7cad46c8c556e3ad4cf7162f582587cee /indra | |
parent | 0815650c3e3d69cff18d88034daa11b61d0a9657 (diff) |
cleanup
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 43a9e29f4b..bb28b09200 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -3476,16 +3476,8 @@ BOOL LLVOAvatar::updateCharacter(LLAgent &agent) mInAir = in_air; // correct for the fact that the pelvis is not necessarily the center - // of the agent's physical representation - if ( !mHasPelvisOffset )
- {
- root_pos.mdV[VZ] -= (0.5f * mBodySize.mV[VZ]) - mPelvisToFoot; - } - else - {
- root_pos.mdV[VZ] -= (0.5f * mBodySize.mV[VZ]) - mPelvisToFoot; - } - + // of the agent's physical representation
+ root_pos.mdV[VZ] -= (0.5f * mBodySize.mV[VZ]) - mPelvisToFoot; LLVector3 newPosition = gAgent.getPosAgentFromGlobal(root_pos); |