Bandaid for SL-202 Skin weights with joint offsets.

meow-7.2.2
Aura Linden 2015-10-13 16:40:39 -07:00
parent b082ed28e8
commit 8729f5d23a
1 changed files with 5 additions and 1 deletions

View File

@ -1368,10 +1368,14 @@ void LLDAELoader::processDomModel(LLModel* model, DAE* dae, daeElement* root, do
LLMatrix4 newInverse = model->mSkinInfo.mInvBindMatrix[i];
newInverse.setTranslation( mJointList[lookingForJoint].getTranslation() );
model->mSkinInfo.mAlternateBindMatrix.push_back( newInverse );
}
}
else
{
LL_WARNS()<<"Possibly misnamed/missing joint [" <<lookingForJoint.c_str()<<" ] "<<LL_ENDL;
//SL-202 15-31-10 Placeholders for the collision volume joints to keep array aligned.
LLMatrix4 emptyInverse;
emptyInverse.setZero();
model->mSkinInfo.mAlternateBindMatrix.push_back( emptyInverse );
}
}