SL-13426 Fixed crash at processDomModel
parent
c38199451b
commit
da0024efec
|
|
@ -1458,7 +1458,8 @@ void LLDAELoader::processDomModel(LLModel* model, DAE* dae, daeElement* root, do
|
|||
std::string lookingForJoint = (*jointIt).c_str();
|
||||
//Look for the joint xform that we extracted from the skeleton, using the jointIt as the key
|
||||
//and store it in the alternate bind matrix
|
||||
if ( mJointMap.find( lookingForJoint ) != mJointMap.end() )
|
||||
if (mJointMap.find(lookingForJoint) != mJointMap.end()
|
||||
&& model->mSkinInfo.mInvBindMatrix.size() > i)
|
||||
{
|
||||
LLMatrix4 newInverse = model->mSkinInfo.mInvBindMatrix[i];
|
||||
newInverse.setTranslation( mJointList[lookingForJoint].getTranslation() );
|
||||
|
|
|
|||
Loading…
Reference in New Issue