diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 9f7a941e89e9..1153d655330e 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -856,9 +856,10 @@ void Viewport::_process_picking() { if (send_event) { co->_input_event_call(this, ev, res[i].shape); - if (physics_object_picking_first_only) { - break; - } + } + + if (physics_object_picking_first_only) { + break; } } }