Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 nodeName = ToString(_node->mName);
auto subMesh = this->CreateSubMesh(assimpMesh, _transform);
subMesh.SetName(nodeName);
// 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
Loading