diff options
author | prep linden <prep@lindenlab.com> | 2010-09-24 13:11:53 -0400 |
---|---|---|
committer | prep linden <prep@lindenlab.com> | 2010-09-24 13:11:53 -0400 |
commit | c7f5a9419b4b93efdc04ebfbb8e05a2ef0e09142 (patch) | |
tree | d4bd4000daf955114e9dc1ed96a873b620115299 /indra/newview/llvoavatar.cpp | |
parent | e0588af08737177f8a1bc519376073e14b886434 (diff) |
Added support for joint offsets
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rwxr-xr-x | indra/newview/llvoavatar.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 54400c184b..1c65b18206 100755 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -4784,6 +4784,16 @@ LLJoint *LLVOAvatar::getJoint( const std::string &name ) } //----------------------------------------------------------------------------- +// resetJointPositions +//----------------------------------------------------------------------------- +void LLVOAvatar::resetJointPositions( void ) +{ + for(S32 i = 0; i < (S32)mNumJoints; ++i) + { + mSkeleton[i].restoreOldXform(); + } +} +//----------------------------------------------------------------------------- // getCharacterPosition() //----------------------------------------------------------------------------- LLVector3 LLVOAvatar::getCharacterPosition() |