SL-134 WIP - Possible fix for octree corruption/crash when mesh has unknown joints.

meow-7.2.2
Brad Payne (Vir Linden) 2015-08-11 15:53:00 -04:00
parent 003156a89d
commit d0eed68502
1 changed files with 4 additions and 0 deletions

View File

@ -4172,6 +4172,10 @@ void LLRiggedVolume::update(const LLMeshSkinInfo* skin, LLVOAvatar* avatar, cons
for (U32 j = 0; j < maxJoints; ++j)
{
LLJoint* joint = avatar->getJoint(skin->mJointNames[j]);
if (!joint)
{
joint = avatar->getJoint("mPelvis");
}
if (joint)
{
mat[j] = skin->mInvBindMatrix[j];