diff options
| author | prep <prep@lindenlab.com> | 2010-10-28 13:40:15 -0400 |
|---|---|---|
| committer | prep <prep@lindenlab.com> | 2010-10-28 13:40:15 -0400 |
| commit | 53d5fd1e9bb59868b793f9bef0529cd62ca70126 (patch) | |
| tree | b0eaf1a4d504f6a51e416c0c57d241b580920e28 /indra/newview/llfloatermodelpreview.cpp | |
| parent | 7863674626bcf16ad26f3bb8e77a6ca41998c36b (diff) | |
- Pelvis offsets are now preserved
- Fix for CTS-261
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
| -rw-r--r-- | indra/newview/llfloatermodelpreview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 73707ad2f1..1c73a6cb31 100644 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -1487,6 +1487,14 @@ void LLModelLoader::run() //Most likely an error in the asset. llwarns<<"Tried to apply joint position from .dae, but it did not exist in the avatar rig." << llendl; } + //Reposition the avatars pelvis (avPos+offset) + //if ( !strcmp( (*jointIt).first.c_str(),"mPelvis" ) )
+ if ( lookingForJoint == "mPelvis" )
+ {
+ const LLVector3& pos = gAgentAvatarp->getCharacterPosition();
+ gAgentAvatarp->setPelvisOffset( true, jointTransform.getTranslation() );
+ gAgentAvatarp->setPosition( pos + jointTransform.getTranslation() );
+ } } } } |
