浏览代码

Ensure nothing is found outside modal stack, but keep logic going. Fixes #7622

Juan Linietsky 8 年之前
父节点
当前提交
fdc2cdef0b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      scene/main/viewport.cpp

+ 1 - 2
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
 			}
 		}