Skip to content

Commit ca38212

Browse files
committed
Merge pull request godotengine#89643 from mnemoli/pickone-fix-89641
Fix mouse events when `physics_object_picking_first_only` enabled
2 parents e19b808 + ca23775 commit ca38212

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scene/main/viewport.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,10 @@ void Viewport::_process_picking() {
856856

857857
if (send_event) {
858858
co->_input_event_call(this, ev, res[i].shape);
859-
if (physics_object_picking_first_only) {
860-
break;
861-
}
859+
}
860+
861+
if (physics_object_picking_first_only) {
862+
break;
862863
}
863864
}
864865
}

0 commit comments

Comments
 (0)