Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI extraction order fix #9099

Merged
merged 2 commits into from
Jul 23, 2023
Merged

Conversation

ickshonpe
Copy link
Contributor

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.

* Added the `ExtractAtlasNode` variant to `RenderUiSystem`.
* Changed `ExtractSchedule` so that `extract_uinode_borders` and `extract_text_uinodes` run after `extract_atlas_uinodes`.
@Selene-Amanita Selene-Amanita added C-Bug An unexpected or incorrect behavior A-UI Graphical user interfaces, styles, layouts, and widgets labels Jul 10, 2023
@cart cart added this to the 0.11.1 milestone Jul 14, 2023
extract_uinode_borders.after(RenderUiSystem::ExtractNode),
extract_atlas_uinodes
.in_set(RenderUiSystem::ExtractAtlasNode)
.after(RenderUiSystem::ExtractNode),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be preferable to order the sets relative to each other, over ordering the individual system against it.

This is strictly non-blocking, and this works as-is.

@james7132 james7132 added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jul 15, 2023
@mockersf mockersf enabled auto-merge July 23, 2023 13:06
@mockersf mockersf added this pull request to the merge queue Jul 23, 2023
Merged via the queue into bevyengine:main with commit a879f98 Jul 23, 2023
cart pushed a commit that referenced this pull request Aug 10, 2023
# 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`.
@s-puig s-puig mentioned this pull request Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI extraction functions have nondeterministic ordering
5 participants