bevy/crates/bevy_render/src/mesh
Charles 6c2f78f449 Validate vertex attribute format on insert (#5259)
# Objective

- Validate the format of the values with the expected attribute format.
- Currently, if you pass the wrong format, it will crash somewhere unrelated with a very cryptic error message, so it's really hard to debug for beginners.

## Solution

- Compare the format and panic when unexpected format is passed

## Note

- I used a separate `error!()` for a human friendly message because the panic message is very noisy and hard to parse for beginners. I don't mind changing this to only a panic if people prefer that.
- This could potentially be something that runs only in debug mode, but I don't think inserting attributes is done often enough for this to be an issue.


Co-authored-by: Charles <IceSentry@users.noreply.github.com>
2022-07-11 14:11:31 +00:00
..
mesh Validate vertex attribute format on insert (#5259) 2022-07-11 14:11:31 +00:00
shape Use collect to build mesh attributes (#5255) 2022-07-11 14:11:30 +00:00
mod.rs Mesh Skinning. Attempt #3 (#4238) 2022-03-29 18:31:13 +00:00