bevy/examples/3d
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
..
3d_gizmos.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
3d_scene.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
3d_shapes.rs Implement Meshable for some 3D primitives (#11688) 2024-02-06 21:44:13 +00:00
3d_viewport_to_world.rs Use Direction3d for gizmos.circle normal (#11422) 2024-01-21 18:03:26 +00:00
animated_material.rs simplify animated_material example (#11576) 2024-01-28 21:58:05 +00:00
anti_aliasing.rs RenderAssetPersistencePolicy → RenderAssetUsages (#11399) 2024-01-30 13:22:10 +00:00
atmospheric_fog.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
blend_modes.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
bloom_3d.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
deferred_rendering.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
deterministic.rs Cleanup deterministic example (#11416) 2024-01-19 06:08:19 +00:00
fog.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
generate_custom_mesh.rs Mesh insert indices (#11745) 2024-02-06 23:31:48 +00:00
irradiance_volumes.rs Implement irradiance volumes. (#10268) 2024-02-06 23:23:20 +00:00
lighting.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
lightmaps.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
lines.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
load_gltf.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
orthographic.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
parallax_mapping.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
parenting.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
pbr.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
reflection_probes.rs Implement minimal reflection probes (fixed macOS, iOS, and Android). (#11366) 2024-01-19 07:33:52 +00:00
render_to_texture.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
shadow_biases.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
shadow_caster_receiver.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
skybox.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
spherical_area_lights.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
split_screen.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
spotlight.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
ssao.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
texture.rs Use impl Into<A> for Assets::add (#10878) 2024-01-08 22:14:43 +00:00
tonemapping.rs Inverse missing_docs logic (#11676) 2024-02-03 21:40:55 +00:00
transmission.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
transparency_3d.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
two_passes.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
update_gltf_scene.rs Meshlet prep (#11442) 2024-01-22 15:28:33 +00:00
vertex_colors.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00
wireframe.rs Exposure settings (adopted) (#11347) 2024-01-16 14:53:21 +00:00