diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-06-18 21:55:57 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-06-19 18:54:03 +0300 |
commit | 5bc92322e974c6c1a0fcc7db0ebb6479ed486a0b (patch) | |
tree | 16de8f24d6e1f5cac5248ba892a92aeb6c180c68 /indra/newview/llskinningutil.cpp | |
parent | 5099401a5364ebfe4ec908fc0481ed3568778651 (diff) |
#4250 Crash uploading a dae model
Diffstat (limited to 'indra/newview/llskinningutil.cpp')
-rw-r--r-- | indra/newview/llskinningutil.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llskinningutil.cpp b/indra/newview/llskinningutil.cpp index 43836a420b..47f58afa00 100644 --- a/indra/newview/llskinningutil.cpp +++ b/indra/newview/llskinningutil.cpp @@ -360,7 +360,8 @@ void LLSkinningUtil::updateRiggingInfo(const LLMeshSkinInfo* skin, LLVOAvatar *a { rig_info_tab[joint_num].setIsRiggedTo(true); - const LLMatrix4a& mat = skin->mBindPoseMatrix[joint_index]; + size_t bind_poses_size = skin->mBindPoseMatrix.size(); + const LLMatrix4a& mat = bind_poses_size > joint_index ? skin->mBindPoseMatrix[joint_index] : LLMatrix4a::identity(); LLVector4a pos_joint_space; mat.affineTransform(pos, pos_joint_space); |