From db957313918d1716aa5087f283fd51d7fe49a357 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Tue, 10 Jun 2025 23:49:52 +0300 Subject: #4148 Skeleton Translation #3 'non joints' also need adjustments --- indra/llappearance/llavatarappearance.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/indra/llappearance/llavatarappearance.cpp b/indra/llappearance/llavatarappearance.cpp index 34d6b4db83..a3032325c9 100644 --- a/indra/llappearance/llavatarappearance.cpp +++ b/indra/llappearance/llavatarappearance.cpp @@ -1679,12 +1679,9 @@ void LLAvatarSkeletonInfo::getJointRestMatrices( { for (LLAvatarBoneInfo* bone_info : bone_list) { - if (bone_info->mIsJoint) - { - glm::mat4 rest_mat = parent_mat * bone_info->getJointMatrix(); - result[bone_info->mName] = rest_mat; - getJointRestMatrices(bone_info->mChildren, result, rest_mat); - } + glm::mat4 rest_mat = parent_mat * bone_info->getJointMatrix(); + result[bone_info->mName] = rest_mat; + getJointRestMatrices(bone_info->mChildren, result, rest_mat); } } -- cgit v1.2.3