#4128 Crash on mInvBindMatrix

meow-7.2.2
Andrey Kleshchev 2025-05-21 21:53:59 +03:00 committed by Andrey Kleshchev
parent 910a3a6792
commit fe84905b17
1 changed files with 6 additions and 0 deletions

View File

@ -135,6 +135,12 @@ void LLSkinningUtil::initSkinningMatrixPalette(
initJointNums(const_cast<LLMeshSkinInfo*>(skin), avatar);
if (skin->mInvBindMatrix.size() < count )
{
// faulty model? mInvBindMatrix.size() should have matched mJointNames.size()
return;
}
LLMatrix4a world[LL_CHARACTER_MAX_ANIMATED_JOINTS];
for (S32 j = 0; j < count; ++j)