bevy/crates
Brett Striker be32339a32
Restore pre 0.13.1 Root Node Layout behavior (#12698)
# Objective

Fix the regression for Root Node's Layout behavior introduced in
https://github.com/bevyengine/bevy/pull/12268

- Add regression test for Root Node Layout's behaving as they did before
0.13.1
- Restore pre 0.13.1 Root Node Layout behavior (fixes
https://github.com/bevyengine/bevy/issues/12624)

## Solution

This implements [@nicoburns suggestion
](https://discord.com/channels/691052431525675048/743663673393938453/1221593626476548146),
where instead of adding the camera to the taffy node tree, we revert
back to adding a new "parent" node for each root node while maintaining
their relationship with the camera.

> If you can do the ecs change detection to move the node to the correct
Taffy instance for the camera then you should also be able to move it to
a `Vec` of root nodes for that camera.

---

## Changelog

Fixed https://github.com/bevyengine/bevy/issues/12624 - Restores pre
0.13.1 Root Node Layout behavior

## Migration Guide

If you were affected by the 0.13.1 regression and added `position_type:
Absolute` to all your root nodes you might be able to reclaim some LOC
by removing them now that the 0.13 behavior is restored.
2024-04-01 23:04:38 +02:00
..
bevy_a11y Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_animation Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_app Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_asset Fix fetching assets in Web Workers (#12134) 2024-04-01 23:04:37 +02:00
bevy_audio Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_core Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_core_pipeline Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_derive Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_diagnostic Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_dylib Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_dynamic_plugin Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_ecs Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_ecs_compile_fail_tests Deprecated Various Component Methods from Query and QueryState (#9920) 2024-02-04 01:01:59 +00:00
bevy_encase_derive Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_gilrs Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_gizmos Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_gltf Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_hierarchy Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_input Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_internal Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_log Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_macro_utils Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_macros_compile_fail_tests Standardize toml format with taplo (#10594) 2023-11-21 01:04:14 +00:00
bevy_math Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_mikktspace Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_pbr Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_ptr Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_reflect Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_reflect_compile_fail_tests bevy_reflect_derive: Clean up attribute logic (#11777) 2024-02-12 15:16:27 +00:00
bevy_render Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_scene Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_sprite Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_tasks Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_text Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_time Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_transform Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_ui Restore pre 0.13.1 Root Node Layout behavior (#12698) 2024-04-01 23:04:38 +02:00
bevy_utils Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_window Release: 0.13.1 2024-03-18 23:06:31 +01:00
bevy_winit Release: 0.13.1 2024-03-18 23:06:31 +01:00