bevy/crates/bevy_hierarchy/src
Bruce Reif (Buswolley) 7604464438
fix panic when moving child (#8346)
# Objective
When changing an Entity's `Parent` to a new one from an old `Parent`
that doesn't exist, Bevy panics. Fixes #8337.

## Solution

Use `get_entity_mut` instead of `entity_mut` in `remove_from_children`.

---------

Co-authored-by: James Liu <contact@jamessliu.com>
2023-04-17 18:03:47 +00:00
..
components Add const Entity::PLACEHOLDER (#6761) 2022-11-28 13:40:10 +00:00
child_builder.rs fix panic when moving child (#8346) 2023-04-17 18:03:47 +00:00
events.rs Add add_child, set_parent and remove_parent to EntityMut (#6926) 2022-12-25 00:23:12 +00:00
hierarchy.rs Fix various typos (#7096) 2023-01-06 00:43:30 +00:00
lib.rs Suppress the clippy::type_complexity lint (#8313) 2023-04-06 21:27:36 +00:00
query_extension.rs Replace WorldQueryGats trait with actual gats (#6319) 2022-11-03 16:33:05 +00:00
valid_parent_check_plugin.rs Schedule-First: the new and improved add_systems (#8079) 2023-03-18 01:45:34 +00:00