Skip to content

Commit

Permalink
Merge pull request #48800 from madmiraal/fix-48788
Browse files Browse the repository at this point in the history
Check if input marked handled before processing additional CollisionObjects
  • Loading branch information
akien-mga committed Sep 26, 2023
2 parents b905959 + 3a7eda8 commit 28b1678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,9 @@ void Viewport::_process_picking() {
sorter.sort(res, rc);
}
for (int i = 0; i < rc; i++) {
if (is_input_handled()) {
break;
}
if (res[i].collider_id.is_valid() && res[i].collider) {
CollisionObject2D *co = Object::cast_to<CollisionObject2D>(res[i].collider);
if (co && co->can_process()) {
Expand Down

0 comments on commit 28b1678

Please sign in to comment.