diff options
author | leyla_linden <none@none> | 2011-01-06 16:43:57 -0800 |
---|---|---|
committer | leyla_linden <none@none> | 2011-01-06 16:43:57 -0800 |
commit | 523722652259d37841be2ad4ad283df4887ad372 (patch) | |
tree | 3872f4235183254667bb0452ff5faf6554c7c69c /indra/newview/llvoavatar.cpp | |
parent | f243f7e550b9dadd26d119bfeb4b215aa809997c (diff) | |
parent | d8cf705d0189ec34b1202ee50ea3e5991cf4c90f (diff) |
Merge
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r-- | indra/newview/llvoavatar.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 9aa86ebed0..ded3e36cf6 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -4962,6 +4962,28 @@ void LLVOAvatar::resetJointPositions( void ) mHasPelvisOffset = false; } //----------------------------------------------------------------------------- +// resetSpecificJointPosition +//----------------------------------------------------------------------------- +void LLVOAvatar::resetSpecificJointPosition( const std::string& name ) +{ + LLJoint* pJoint = mRoot.findJoint( name ); + + if ( pJoint ) + { + pJoint->restoreOldXform(); + pJoint->setId( LLUUID::null ); + //If we're reseting the pelvis position make sure not to apply offset + if ( name == "mPelvis" ) + { + mHasPelvisOffset = false; + } + } + else + { + llinfos<<"Did not find "<< name.c_str()<<llendl; + } +} +//----------------------------------------------------------------------------- // resetJointPositionsToDefault //----------------------------------------------------------------------------- void LLVOAvatar::resetJointPositionsToDefault( void ) @@ -4995,8 +5017,6 @@ void LLVOAvatar::resetJointPositionsToDefault( void ) mHasPelvisOffset = false; postPelvisSetRecalc(); } - - //----------------------------------------------------------------------------- // getCharacterPosition() //----------------------------------------------------------------------------- |