aboutsummaryrefslogtreecommitdiff
path: root/scene/main/viewport.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-08-15 07:32:15 -0300
committerJuan Linietsky2017-08-15 07:32:15 -0300
commitfdc2cdef0bc0d006effdfd4a64d097b0a3ba249d (patch)
treee988017e23ad3a7b5b8968f4e0058d4f20217a55 /scene/main/viewport.cpp
parent7fc3c51169957f0907a13dd07d4004496e6ebd56 (diff)
downloadgodot-fdc2cdef0bc0d006effdfd4a64d097b0a3ba249d.tar.gz
godot-fdc2cdef0bc0d006effdfd4a64d097b0a3ba249d.tar.zst
godot-fdc2cdef0bc0d006effdfd4a64d097b0a3ba249d.zip
Ensure nothing is found outside modal stack, but keep logic going. Fixes #7622
Diffstat (limited to 'scene/main/viewport.cpp')
-rw-r--r--scene/main/viewport.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 717e76c5f..4f2723105 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -1932,8 +1932,7 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
Control *top = gui.modal_stack.back()->get();
if (over != top && !top->is_a_parent_of(over)) {
-
- return; // don't send motion event to anything below modal stack top
+ over = NULL; //nothing can be found outside the modal stack
}
}