Avoid passing handled input event to collision object 3d.

This commit is contained in:
Daylily-Zeleen 2024-05-30 16:05:40 +08:00
parent 4e5ed0bbfb
commit f90f663258

View file

@ -884,6 +884,10 @@ void Viewport::_process_picking() {
} }
#ifndef _3D_DISABLED #ifndef _3D_DISABLED
if (physics_object_picking_first_only && is_input_handled()) {
continue;
}
CollisionObject3D *capture_object = nullptr; CollisionObject3D *capture_object = nullptr;
if (physics_object_capture.is_valid()) { if (physics_object_capture.is_valid()) {
capture_object = Object::cast_to<CollisionObject3D>(ObjectDB::get_instance(physics_object_capture)); capture_object = Object::cast_to<CollisionObject3D>(ObjectDB::get_instance(physics_object_capture));