Skip to content

Commit

Permalink
Always clear cursor queue to avoid setting it twice
Browse files Browse the repository at this point in the history
  • Loading branch information
eero-lehtinen committed Aug 2, 2024
1 parent f2d9644 commit 5aa7d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/view/window/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub fn update_cursors(
mut queue: Local<HashSet<Entity>>,
) {
for (entity, cursor) in windows.iter_mut() {
if !(cursor.is_changed() || queue.remove(&entity)) {
if !(queue.remove(&entity) || cursor.is_changed()) {
continue;
}

Expand Down

0 comments on commit 5aa7d17

Please sign in to comment.