bevy/crates/bevy_pbr/src
JaySpruce d6db78b5dd
Replace internal uses of insert_or_spawn_batch (#18035)
## Objective
`insert_or_spawn_batch` is due to be deprecated eventually (#15704), and
removing uses internally will make that easier.

## Solution

Replaced internal uses of `insert_or_spawn_batch` with
`try_insert_batch` (non-panicking variant because
`insert_or_spawn_batch` didn't panic).

All of the internal uses are in rendering code. Since retained rendering
was meant to get rid non-opaque entity IDs, I assume the code was just
using `insert_or_spawn_batch` because `insert_batch` didn't exist and
not because it actually wanted to spawn something. However, I am *not*
confident in my ability to judge rendering code.
2025-03-06 16:16:36 +00:00
..
atmosphere Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
cluster Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
decal Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
deferred Remove prepasses from the render world when they're removed from the main world. (#17565) 2025-02-14 06:43:35 +00:00
light Revert "Replace Ambient Lights with Environment Map Lights (#17482)" (#18167) 2025-03-05 23:08:46 +00:00
light_probe Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
lightmap Weak handle migration (#17695) 2025-02-05 22:44:20 +00:00
meshlet Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
prepass Allow prepass to run without ATTRIBUTE_NORMAL (#17881) 2025-02-24 21:22:34 +00:00
render Replace internal uses of insert_or_spawn_batch (#18035) 2025-03-06 16:16:36 +00:00
ssao Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
ssr Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
volumetric_fog Fix Component require() IDE integration (#18165) 2025-03-06 02:44:47 +00:00
components.rs Support non-Vec data structures in relations (#17447) 2025-01-20 21:26:08 +00:00
extended_material.rs Use global binding arrays for bindless resources. (#17898) 2025-02-21 05:55:36 +00:00
fog.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
lib.rs Revert "Replace Ambient Lights with Environment Map Lights (#17482)" (#18167) 2025-03-05 23:08:46 +00:00
material_bind_groups.rs Add a new #[data] attribute to AsBindGroup that allows packing data for multiple materials into a single array. (#17965) 2025-02-24 21:38:55 +00:00
material.rs Reextract meshes when their material assets change. (#18123) 2025-03-03 06:28:33 +00:00
mesh_material.rs impl Eq/PartialEq for MeshMaterial{2|3}d (#17990) 2025-02-23 23:58:10 +00:00
parallax.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
pbr_material.rs Add a new #[data] attribute to AsBindGroup that allows packing data for multiple materials into a single array. (#17965) 2025-02-24 21:38:55 +00:00
wireframe.rs Replace internal uses of insert_or_spawn_batch (#18035) 2025-03-06 16:16:36 +00:00