You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extract_uinode_borders and extract_text_uinodes both need to run after extract_atlas_uinodes.
Additional details
The order for extract_text_uinodes and extract_uinode_borders doesn't matter because the borders query has a Without<ContentSize> filter which means that text nodes can't have borders. It wasn't clear how borders for intrinsically sized nodes should be implemented, so the filter was added to sidestep the issue. But extract_atlas_uinodes was added after the borders PR and this issue with the system ordering was missed.
The text was updated successfully, but these errors were encountered:
# Objective
Fixes#9097
## Solution
Reorder the `ExtractSchedule` so that the `extract_text_uinodes` and
`extract_uinode_borders` systems are run after `extract_atlas_uinodes`.
## Changelog
`bevy_ui::render`:
* Added the `ExtractAtlasNode` variant to `RenderUiSystem`.
* Changed `ExtractSchedule` so that `extract_uinode_borders` and
`extract_text_uinodes` run after `extract_atlas_uinodes`.
# Objective
Fixes#9097
## Solution
Reorder the `ExtractSchedule` so that the `extract_text_uinodes` and
`extract_uinode_borders` systems are run after `extract_atlas_uinodes`.
## Changelog
`bevy_ui::render`:
* Added the `ExtractAtlasNode` variant to `RenderUiSystem`.
* Changed `ExtractSchedule` so that `extract_uinode_borders` and
`extract_text_uinodes` run after `extract_atlas_uinodes`.
Bevy version
0.11
What you did
What went wrong
Run the example once, borders drawn before texture atlas image nodes:
![borders_order_bug](https://private-user-images.githubusercontent.com/27962798/252323795-6aaa9f11-f8b0-4b33-b85c-3f25040f78e8.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTM1MDksIm5iZiI6MTczOTE5MzIwOSwicGF0aCI6Ii8yNzk2Mjc5OC8yNTIzMjM3OTUtNmFhYTlmMTEtZjhiMC00YjMzLWI4NWMtM2YyNTA0MGY3OGU4LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEzMTMyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk1N2Y1MjNhYjIxYzQ5OTZjYzJhMzYzMWQ5NDg5OTFjNTFiMjQzZTVkZTFiZGViNmE4ODk4NTQxMjViYzZkODYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5t_MFPNJoIgXQA5vvYdGVLDVLOf_sNjdOJmRY4dbBaU)
Run it again, borders drawn after:
![border_order_bug_2](https://private-user-images.githubusercontent.com/27962798/252323856-e003b26d-6bab-45d9-aaee-8ec8b2348796.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTM1MDksIm5iZiI6MTczOTE5MzIwOSwicGF0aCI6Ii8yNzk2Mjc5OC8yNTIzMjM4NTYtZTAwM2IyNmQtNmJhYi00NWQ5LWFhZWUtOGVjOGIyMzQ4Nzk2LlBORz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEzMTMyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJlZGY1OTE4OGY5ZGNjMzdlZGQzYjVlMzRiNGViN2MyNzg5MDdlN2QxYjEyNTUwY2Q2ZTFlMGMyMzRlZGNhNjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MUEn7uysZ7lDm-ulxOyehTfbL_2fgfh2tj_JwJrCTpA)
In
bevy_ui::render::build_ui_render
:extract_uinode_borders
andextract_text_uinodes
both need to run afterextract_atlas_uinodes
.Additional details
The order for
extract_text_uinodes
andextract_uinode_borders
doesn't matter because the borders query has aWithout<ContentSize>
filter which means that text nodes can't have borders. It wasn't clear how borders for intrinsically sized nodes should be implemented, so the filter was added to sidestep the issue. Butextract_atlas_uinodes
was added after the borders PR and this issue with the system ordering was missed.The text was updated successfully, but these errors were encountered: