From 57e8f847c79445f11e1eac4343d28d806bc72167 Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Fri, 27 Dec 2024 16:53:38 +0800 Subject: [PATCH] Fix assimp submesh naming Signed-off-by: Luca Della Vedova --- graphics/src/AssimpLoader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/src/AssimpLoader.cc b/graphics/src/AssimpLoader.cc index b20bb837..fae6c56b 100644 --- a/graphics/src/AssimpLoader.cc +++ b/graphics/src/AssimpLoader.cc @@ -210,9 +210,9 @@ void AssimpLoader::Implementation::RecursiveCreate(const aiScene* _scene, { auto assimpMeshIdx = _node->mMeshes[meshIdx]; auto& assimpMesh = _scene->mMeshes[assimpMeshIdx]; - auto nodeName = ToString(_node->mName); + auto meshName = ToString(assimpMesh->mName); auto subMesh = this->CreateSubMesh(assimpMesh, _transform); - subMesh.SetName(nodeName); + subMesh.SetName(meshName); // Now add the bones to the skeleton if (assimpMesh->HasBones() && _scene->HasAnimations()) {