diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-05-21 21:53:59 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-05-22 07:11:54 +0300 |
commit | fe84905b1762c821fbc0ef1db97b8df885e6cce1 (patch) | |
tree | 9f131b27e2baa4d341404ccb7ef0b342ea615c64 | |
parent | 910a3a6792d46275b3461d304d188159db5109f7 (diff) |
#4128 Crash on mInvBindMatrix
-rw-r--r-- | indra/newview/llskinningutil.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llskinningutil.cpp b/indra/newview/llskinningutil.cpp index cee43f3cff..43836a420b 100644 --- a/indra/newview/llskinningutil.cpp +++ b/indra/newview/llskinningutil.cpp @@ -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) |