bevy/crates/bevy_scene/src
Carter Anderson f3b2139e92
Only despawn scene entities still in the hierarchy (#17938)
Fixes #17883

# Objective + Solution

When doing normal scene root entity despawns (which are notably now
recursive), do not despawn instanced entities that are no longer in the
hierarchy.

(I would not classify this as a bug, but rather a behavior change)

## Migration Guide

If you previously relied on scene entities no longer in the hierarchy
being despawned when the scene root is despawned , use
`SceneSpawner::despawn_instance()` instead.
2025-02-22 01:53:08 +00:00
..
components.rs Add missing #[reflect(Component, Default)] to SceneRoot and DynamicSceneRoot. (#16816) 2024-12-15 19:18:22 +00:00
dynamic_scene_builder.rs Allow users to register their own disabling components / default query filters (#17768) 2025-02-11 18:25:32 +00:00
dynamic_scene.rs Improved Entity Mapping and Cloning (#17687) 2025-02-06 22:13:41 +00:00
lib.rs Only despawn scene entities still in the hierarchy (#17938) 2025-02-22 01:53:08 +00:00
scene_filter.rs Move hashbrown and foldhash out of bevy_utils (#17460) 2025-01-23 16:46:08 +00:00
scene_loader.rs Deny derive_more error feature and replace it with thiserror (#16684) 2024-12-06 17:03:55 +00:00
scene_spawner.rs Only despawn scene entities still in the hierarchy (#17938) 2025-02-22 01:53:08 +00:00
scene.rs Improved Entity Mapping and Cloning (#17687) 2025-02-06 22:13:41 +00:00
serde.rs Improved Entity Mapping and Cloning (#17687) 2025-02-06 22:13:41 +00:00