Skip to content

Commit

Permalink
Fix assimp submesh naming
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova committed Dec 27, 2024
1 parent 1deb6d9 commit 57e8f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphics/src/AssimpLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit 57e8f84

Please sign in to comment.