bevy/crates/bevy_gltf
François d478723e19 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...
2022-04-07 22:19:32 +00:00
..
src insert the gltf mesh name on the entity if there is one (#4119) 2022-04-07 22:19:32 +00:00
Cargo.toml expose extras from gltf nodes (#2154) 2022-04-07 21:30:52 +00:00