Avoid passing handled input event to collision object 3d.
This commit is contained in:
parent
4e5ed0bbfb
commit
f90f663258
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue