Skip to content

Commit

Permalink
Simplify 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 57e8f84 commit 4e33d6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions graphics/src/AssimpLoader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ void AssimpLoader::Implementation::RecursiveCreate(const aiScene* _scene,
{
auto assimpMeshIdx = _node->mMeshes[meshIdx];
auto& assimpMesh = _scene->mMeshes[assimpMeshIdx];
auto meshName = ToString(assimpMesh->mName);
auto subMesh = this->CreateSubMesh(assimpMesh, _transform);
subMesh.SetName(meshName);
// Now add the bones to the skeleton
if (assimpMesh->HasBones() && _scene->HasAnimations())
{
Expand Down Expand Up @@ -703,6 +701,7 @@ SubMesh AssimpLoader::Implementation::CreateSubMesh(
if (subMesh.NormalCount() == 0u){
subMesh.RecalculateNormals();
}
submesh.SetName(ToString(_assimpMesh->mName));
return subMesh;
}

Expand Down

0 comments on commit 4e33d6f

Please sign in to comment.