From 95d294b97a2ea2406a2477fa66dfefa10a838fd2 Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Sun, 16 Jul 2023 14:36:18 +0200 Subject: [PATCH] Separate input-handled-state for different events during physics-picking Currently the input-handled-state for different events can interfere with each other. This PR makes sure, that the input_handled_state is reset before processing and InputEvent during physics-picking. --- scene/main/viewport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 567649aa165..eef097e6257 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -717,6 +717,7 @@ void Viewport::_process_picking() { } while (physics_picking_events.size()) { + local_input_handled = false; Ref ev = physics_picking_events.front()->get(); physics_picking_events.pop_front();