Used node name instead of mesh name

This commit is contained in:
Xiao Qi 2022-11-02 17:39:48 +08:00
parent 48c3ed823b
commit 4bfb3ef843
1 changed files with 1 additions and 2 deletions

View File

@ -28,6 +28,7 @@ namespace SH_COMP
aiMesh* mesh = scene.mMeshes[node.mMeshes[i]];
meshes.emplace_back();
GetMesh(*mesh, meshes.back());
meshes.back().name = node.mName.C_Str();
}
for (size_t i{ 0 }; i < node.mNumChildren; ++i)
@ -111,8 +112,6 @@ namespace SH_COMP
meshData.indices.push_back(face.mIndices[j]);
}
}
meshData.name = mesh.mName.C_Str();
}
void MeshCompiler::BuildHeaders(MeshAsset& asset) noexcept