Merge pull request #92536 from Daylily-Zeleen/daylily-zeleen/fix_3d_input_event

Add missing check to avoid passing handled input event to collision object 3d.
This commit is contained in:
Rémi Verschelde 2024-08-28 00:10:57 +02:00
commit f565996472
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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<CollisionObject3D>(ObjectDB::get_instance(physics_object_capture));