bevy/crates/bevy_gltf/src/loader
DaoLendaye cf3f26f10b
Add GltfMeshName component and Deref implementations (#19331)
Stores mesh names from glTF files in GltfMeshName component rather than
Name component, making both GltfMeshName and GltfMaterialName behave
like strings via Deref.

# Objective

Fixed the side effects of #19287
Fixes Examples that modify gltf materials are broken #19322

## Solution

Add GltfMeshName component and Deref implementations

Stores mesh names from glTF files in GltfMeshName component rather than
Name component, making both GltfMeshName and GltfMaterialName behave
like strings via Deref.


## Testing

cargo run --example depth_of_field
cargo run --example lightmaps
cargo run --example mixed_lighting
They are consistent with the situation before the error occurred.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Rob Parrett <robparrett@gmail.com>
2025-05-23 20:56:48 +00:00
..
extensions Refactor bevy_gltf (#15994) 2025-02-26 01:00:11 +00:00
gltf_ext Use material name for mesh entity's Name when available (#19287) 2025-05-20 14:45:04 +00:00
mod.rs Add GltfMeshName component and Deref implementations (#19331) 2025-05-23 20:56:48 +00:00