mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
b2b302bdfd
# 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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |