From fdc2cdef0bc0d006effdfd4a64d097b0a3ba249d Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 15 Aug 2017 07:32:15 -0300 Subject: [PATCH] Ensure nothing is found outside modal stack, but keep logic going. Fixes #7622 --- scene/main/viewport.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 717e76c5fdc..4f272310502 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1932,8 +1932,7 @@ void Viewport::_gui_input_event(Ref 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 } }