summaryrefslogtreecommitdiff
path: root/indra/newview/llskinningutil.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2025-06-27 21:28:58 -0400
committerGitHub <noreply@github.com>2025-06-27 21:28:58 -0400
commitb0c951ffe348f478f27a85720cc7aeffea32fe73 (patch)
tree9e473b5ecbd873062b29d91ee94cc06453e12dd7 /indra/newview/llskinningutil.cpp
parentf48fe44684a535ed2eefc64c134551ce72e9ecf4 (diff)
Revert "Merge develop into glTF mesh import"
Diffstat (limited to 'indra/newview/llskinningutil.cpp')
-rw-r--r--indra/newview/llskinningutil.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/indra/newview/llskinningutil.cpp b/indra/newview/llskinningutil.cpp
index 47f58afa00..cee43f3cff 100644
--- a/indra/newview/llskinningutil.cpp
+++ b/indra/newview/llskinningutil.cpp
@@ -135,12 +135,6 @@ 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)
@@ -360,8 +354,7 @@ void LLSkinningUtil::updateRiggingInfo(const LLMeshSkinInfo* skin, LLVOAvatar *a
{
rig_info_tab[joint_num].setIsRiggedTo(true);
- size_t bind_poses_size = skin->mBindPoseMatrix.size();
- const LLMatrix4a& mat = bind_poses_size > joint_index ? skin->mBindPoseMatrix[joint_index] : LLMatrix4a::identity();
+ const LLMatrix4a& mat = skin->mBindPoseMatrix[joint_index];
LLVector4a pos_joint_space;
mat.affineTransform(pos, pos_joint_space);