Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
insert the gltf mesh name on the entity if there is one (#4119)
# Objective - In glTF, mesh can be named. This named is used to be able to reference the mesh, but not as a component on the entity - Bevy only added the node name to the parent node. ## Solution - Also adds the name on the mesh entity if there is one. Limitation: In glTF, it's possible to have one mesh (which can be named) corresponding to several primitives (which can't, but are the actual mesh). I added the mesh name to the entity with the `PbrBundle` matching the primitives, which means that a mesh with several primitives would all have the same name. I think this is acceptable...
- Loading branch information