bevy/crates/bevy_scene/src
Testare a29d328fe5
Rename map_entities and map_specific_entities (#7570)
# Objective

After fixing dynamic scene to only map specific entities, we want
map_entities to default to the less error prone behavior and have the
previous behavior renamed to "map_all_entities." As this is a breaking
change, it could not be pushed out with the bug fix.

## Solution

Simple rename and refactor.

## Changelog

### Changed
- `map_entities` now accepts a list of entities to apply to, with
`map_all_entities` retaining previous behavior of applying to all
entities in the map.

## Migration Guide 

- In `bevy_ecs`, `ReflectMapEntities::map_entites` now requires an
additional `entities` parameter to specify which entities it applies to.
To keep the old behavior, use the new
`ReflectMapEntities::map_all_entities`, but consider if passing the
entities in specifically might be better for your use case to avoid
bugs.
2023-05-01 21:40:19 +00:00
..
bundle.rs Make bevy_render an optional dependency of bevy_scene (#8136) 2023-04-03 21:23:26 +00:00
dynamic_scene.rs Rename map_entities and map_specific_entities (#7570) 2023-05-01 21:40:19 +00:00
dynamic_scene_builder.rs Make scene handling of entity references robust (#7335) 2023-05-01 15:49:27 +00:00
lib.rs Suppress the clippy::type_complexity lint (#8313) 2023-04-06 21:27:36 +00:00
scene.rs Rename map_entities and map_specific_entities (#7570) 2023-05-01 21:40:19 +00:00
scene_loader.rs Make bevy_render an optional dependency of bevy_scene (#8136) 2023-04-03 21:23:26 +00:00
scene_spawner.rs avoid panic with parented scenes on deleted entities (#8512) 2023-05-01 15:33:42 +00:00
serde.rs Make scene handling of entity references robust (#7335) 2023-05-01 15:49:27 +00:00