-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Resolve UI outlines using the correct target's viewport size #14947
Conversation
…n `ui_layout_system` instead. * Resolve outlines using the target's viewport size, instead of always using the size of the `PrimaryWindow`.
Not sure why the CI is failing with all those system ordering amibiguities. |
The CI is difficult to parse, you need to look for systems you specifically touched. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems simpler.
Yeah, I'm not thrilled with the output, but if the net effect is a decrease in ambiguities just set the expected number to the new total. |
`resolve_outlines_system` wasn't updated when multi-window support was added and it always uses the size of the primary window when resolving viewport coords, regardless of the layout's camera target. Fixes #14945 It's awkward to get the viewport size of the target for an individual node without walking the tree or adding extra fields to `Node`, so I removed `resolve_outlines_system` and instead the outline values are updated in `ui_layout_system`. --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Objective
resolve_outlines_system
wasn't updated when multi-window support was added and it always uses the size of the primary window when resolving viewport coords, regardless of the layout's camera target.Fixes #14945
Solution
It's awkward to get the viewport size of the target for an individual node without walking the tree or adding extra fields to
Node
, so I removedresolve_outlines_system
and instead the outline values are updated inui_layout_system
.