-Fix input bug on window ordering due to foretting to sort root items
This commit is contained in:
parent
5245adcf81
commit
094f0767d8
@ -1493,6 +1493,8 @@ Control* Viewport::_gui_find_control(const Point2& p_global) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_gui_sort_roots();
|
||||||
|
|
||||||
for (List<Control*>::Element *E=gui.roots.back();E;E=E->prev()) {
|
for (List<Control*>::Element *E=gui.roots.back();E;E=E->prev()) {
|
||||||
|
|
||||||
Control *sw = E->get();
|
Control *sw = E->get();
|
||||||
|
Loading…
Reference in New Issue
Block a user