bevy/examples/animation
Lynn 4c86ad6aed
Mesh insert indices (#11745)
# Objective

- Fixes #11740 

## Solution

- Turned `Mesh::set_indices` into `Mesh::insert_indices` and added
related methods for completeness.

---

## Changelog

- Replaced `Mesh::set_indices(indices: Option<Indices>)` with
`Mesh::insert_indices(indices: Indices)`
- Replaced `Mesh::with_indices(indices: Option<Indices>)` with
`Mesh::with_inserted_indices(indices: Indices)` and
`Mesh::with_removed_indices()` mirroring the API for inserting /
removing attributes.
- Updated the examples and internal uses of the APIs described above.

## Migration Guide

- Use `Mesh::insert_indices` or `Mesh::with_inserted_indices` instead of
`Mesh::set_indices` / `Mesh::with_indices`.
- If you have passed `None` to `Mesh::set_indices` or
`Mesh::with_indices` you should use `Mesh::remove_indices` or
`Mesh::with_removed_indices` instead.

---------

Co-authored-by: François <mockersf@gmail.com>
2024-02-06 23:31:48 +00:00
..
animated_fox.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
animated_transform.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
cubic_curve.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
custom_skinned_mesh.rs Mesh insert indices (#11745) 2024-02-06 23:31:48 +00:00
gltf_skinned_mesh.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
morph_targets.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00