From f90f663258eb5573c65207e897b4968bd783350e Mon Sep 17 00:00:00 2001 From: Daylily-Zeleen Date: Thu, 30 May 2024 16:05:40 +0800 Subject: [PATCH] Avoid passing handled input event to collision object 3d. --- scene/main/viewport.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 1302e3c53e6..c1f647aadcb 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -884,6 +884,10 @@ void Viewport::_process_picking() { } #ifndef _3D_DISABLED + if (physics_object_picking_first_only && is_input_handled()) { + continue; + } + CollisionObject3D *capture_object = nullptr; if (physics_object_capture.is_valid()) { capture_object = Object::cast_to(ObjectDB::get_instance(physics_object_capture));