Browse Source

-Fix input bug on window ordering due to foretting to sort root items

Juan Linietsky 9 years ago
parent
commit
094f0767d8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scene/main/viewport.cpp

+ 2 - 0
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();