diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-01-25 10:39:55 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-01-25 10:39:55 -0300 |
commit | 094f0767d84a31ecd64cb9318886efbb613163ce (patch) | |
tree | b4749808aa477335cfec1e4eed76cf065cdd6cd8 | |
parent | 5245adcf81dd61ddb4eac048f6b004f3f455d7ed (diff) |
-Fix input bug on window ordering due to foretting to sort root items
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index a8702f5526..a1bfbda1fc 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1493,6 +1493,8 @@ Control* Viewport::_gui_find_control(const Point2& p_global) { return ret; } + _gui_sort_roots(); + for (List<Control*>::Element *E=gui.roots.back();E;E=E->prev()) { Control *sw = E->get(); |