Add mesh name

TODO: mesh name always blank for models tested against so far
pull/5522/head
Steve M 2024-03-30 20:14:21 -07:00
parent 1e6bc0ce93
commit fe5cbad587
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ void USDImporterImplTinyusdz::InternReadFile(
// Export meshes
for (size_t meshIdx = 0; meshIdx < pScene->mNumMeshes; meshIdx++) {
pScene->mMeshes[meshIdx] = new aiMesh();
pScene->mMeshes[meshIdx]->mName.Set(render_scene.meshes[meshIdx].element_name);
verticesForMesh(render_scene, pScene, meshIdx);
facesForMesh(render_scene, pScene, meshIdx);
normalsForMesh(render_scene, pScene, meshIdx);