Fix for SH-479

meow-7.2.2
prep linden 2010-11-23 09:52:31 -05:00
parent be1fd73390
commit e3df3baff7
1 changed files with 6 additions and 6 deletions

View File

@ -1302,12 +1302,12 @@ void LLModelLoader::run()
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 ( lookingForJoint == "mPelvis" )
{
const LLVector3& pos = gAgentAvatarp->getCharacterPosition();
gAgentAvatarp->setPelvisOffset( true, jointTransform.getTranslation() );
gAgentAvatarp->setPosition( pos + jointTransform.getTranslation() );
}
//if ( lookingForJoint == "mPelvis" )
//{
// const LLVector3& pos = gAgentAvatarp->getCharacterPosition();
// gAgentAvatarp->setPelvisOffset( true, jointTransform.getTranslation() );
// gAgentAvatarp->setPosition( pos + jointTransform.getTranslation() );
//}
}
}
} //missingSkeletonOrScene