bevy/crates/bevy_transform/src
François 5d5d7833f0 fix parenting of scenes (#2410)
# Objective

Fix #2406 

Scene parenting was not done completely, leaving the hierarchy maintenance to the standard system. As scene spawning happens in stage `PreUpdate` and hierarchy maintenance in stage `PostUpdate`, this left the scene in an invalid state parent wise for part of a frame

## Solution

Also add/update the `Children` component when spawning the scene.

I kept the `Children` component as a `SmallVec`, it could be moved to an `HashSet` to guarantee uniqueness


Co-authored-by: François <8672791+mockersf@users.noreply.github.com>
2021-12-24 06:57:28 +00:00
..
components Merge New Renderer 2021-11-22 23:57:42 -08:00
hierarchy fix parenting of scenes (#2410) 2021-12-24 06:57:28 +00:00
lib.rs Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
transform_propagate_system.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00