diff options
author | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2025-05-05 16:12:26 -0400 |
---|---|---|
committer | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2025-05-05 16:12:26 -0400 |
commit | 47a5c7a41340a18d90a5a8724762ff32f9ac8afd (patch) | |
tree | 32f5f781e2a51daf0ece5a180cd3ad7b61daa2fc | |
parent | 629e56d864726eaa0340be220be8c3e3f500ca32 (diff) |
Make sure we're pushing to the joints name set as well.
-rw-r--r-- | indra/llprimitive/llmodelloader.h | 5 | ||||
-rw-r--r-- | indra/newview/gltf/llgltfloader.cpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/indra/llprimitive/llmodelloader.h b/indra/llprimitive/llmodelloader.h index 2dd0058ba6..73ec0ed1f4 100644 --- a/indra/llprimitive/llmodelloader.h +++ b/indra/llprimitive/llmodelloader.h @@ -120,9 +120,14 @@ public: model_queue mPhysicsQ; //map of avatar joints as named in COLLADA assets to internal joint names + // Do not use this for anything other than looking up the name of a joint. This is populated elsewhere. JointMap mJointMap; + + // The joint list is what you want to use to actually setup the specific joint transformations. JointTransformMap& mJointList; JointNameSet& mJointsFromNode; + + U32 mMaxJointsPerMesh; LLModelLoader( diff --git a/indra/newview/gltf/llgltfloader.cpp b/indra/newview/gltf/llgltfloader.cpp index 26257dfc33..7f3f158fd7 100644 --- a/indra/newview/gltf/llgltfloader.cpp +++ b/indra/newview/gltf/llgltfloader.cpp @@ -230,6 +230,7 @@ void LLGLTFLoader::populateJointFromSkin(const LL::GLTF::Skin& skin) jointNode.makeMatrixValid(); mJointList[jointNode.mName] = LLMatrix4(glm::value_ptr(jointNode.mMatrix)); + mJointsFromNode.push_front(jointNode.mName); } } |