Merge pull request #85665 from Sauermann/fix-4.2-subviewport-physics-picking

[4.2] Fix SubViewport physics picking
This commit is contained in:
Rémi Verschelde 2023-12-05 15:13:27 +01:00 committed by GitHub
commit 289472db89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -739,6 +739,14 @@ void Viewport::_process_picking() {
while (physics_picking_events.size()) {
local_input_handled = false;
if (!handle_input_locally) {
Viewport *vp = this;
while (!Object::cast_to<Window>(vp) && vp->get_parent()) {
vp = vp->get_parent()->get_viewport();
}
vp->local_input_handled = false;
}
Ref<InputEvent> ev = physics_picking_events.front()->get();
physics_picking_events.pop_front();