Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Fix ordering bug in SelectionPlugin#266

Merged
aevyrie merged 3 commits into
aevyrie:mainfrom
TheRawMeatball:sneaky-ordering-bug
Oct 4, 2023
Merged

Fix ordering bug in SelectionPlugin#266
aevyrie merged 3 commits into
aevyrie:mainfrom
TheRawMeatball:sneaky-ordering-bug

Conversation

@TheRawMeatball

@TheRawMeatball TheRawMeatball commented Oct 3, 2023

Copy link
Copy Markdown
Contributor

send_selection_events and update_state_from_events not being ordered relative to one another meant that sometimes clicks would be applied to PickSelection one frame late, and sometimes not. This led to unreliable and sometimes broken behavior, so we fix their ordering using a .chain() call to ensure PickSelection is always updated on the frame the pointer is released.

Comment thread crates/bevy_picking_selection/src/lib.rs Outdated
@aevyrie aevyrie merged commit 3d79496 into aevyrie:main Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants