Browse Source

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.
Markus Sauermann 2 năm trước cách đây
mục cha
commit
95d294b97a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scene/main/viewport.cpp

+ 1 - 0
scene/main/viewport.cpp

@@ -717,6 +717,7 @@ void Viewport::_process_picking() {
 	}
 
 	while (physics_picking_events.size()) {
+		local_input_handled = false;
 		Ref<InputEvent> ev = physics_picking_events.front()->get();
 		physics_picking_events.pop_front();