bevy/crates
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
..
bevy_app Update dependencies ron winit& fix cargo-deny lists (#3244) 2021-12-09 20:14:00 +00:00
bevy_asset Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bevy_audio Remove wasm audio feature flag for 2021 (#3000) 2021-11-11 01:17:38 +00:00
bevy_core Rename fixed timestep state and add a test (#3260) 2021-12-12 21:26:40 +00:00
bevy_core_pipeline re-export ClearPassNode (#3336) 2021-12-15 22:04:39 +00:00
bevy_crevice Prepare crevice for vendored release (#3394) 2021-12-23 22:49:12 +00:00
bevy_derive Remove vestigial derives (#3343) 2021-12-18 00:09:24 +00:00
bevy_diagnostic Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dylib Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_dynamic_plugin Update to edition 2021 on master (#3028) 2021-10-27 00:12:14 +00:00
bevy_ecs add tracing spans for parallel executor and system overhead (#3416) 2021-12-23 19:03:44 +00:00
bevy_ecs_compile_fail_tests Fix clippy lints for 1.57 (#3238) 2021-12-02 23:40:37 +00:00
bevy_gilrs enable wasm-bindgen feature on gilrs (#3420) 2021-12-23 19:19:14 +00:00
bevy_gltf Only bevy_render should depend directly on wgpu (#3393) 2021-12-20 20:50:52 +00:00
bevy_input Add documentation and tests to AxisSettings (#3303) 2021-12-18 20:00:18 +00:00
bevy_internal enable Webgl2 optimisation in pbr under feature (#3291) 2021-12-22 20:59:48 +00:00
bevy_log Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_macro_utils Prepare crevice for vendored release (#3394) 2021-12-23 22:49:12 +00:00
bevy_math Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bevy_pbr Prepare crevice for vendored release (#3394) 2021-12-23 22:49:12 +00:00
bevy_reflect Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
bevy_render Prepare crevice for vendored release (#3394) 2021-12-23 22:49:12 +00:00
bevy_scene fix parenting of scenes (#2410) 2021-12-24 06:57:28 +00:00
bevy_sprite Prepare crevice for vendored release (#3394) 2021-12-23 22:49:12 +00:00
bevy_tasks Add readme as docs to relevant crates. (#2575) 2021-12-18 22:59:55 +00:00
bevy_text Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
bevy_transform fix parenting of scenes (#2410) 2021-12-24 06:57:28 +00:00
bevy_ui Prepare crevice for vendored release (#3394) 2021-12-23 22:49:12 +00:00
bevy_utils Merge New Renderer 2021-11-22 23:57:42 -08:00
bevy_window Added set_cursor_icon(...) to Window (#3395) 2021-12-20 22:04:45 +00:00
bevy_winit Added set_cursor_icon(...) to Window (#3395) 2021-12-20 22:04:45 +00:00