Fixed PopupMenu's submenus not showing up in certain situations.

This commit is contained in:
Michael Alexsander Silva Dias 2017-12-06 17:27:21 -02:00
parent e0c00efb99
commit 6629cc7a85
1 changed files with 3 additions and 3 deletions

View File

@ -202,10 +202,10 @@ void PopupMenu::_activate_submenu(int over) {
void PopupMenu::_submenu_timeout() {
if (mouse_over == submenu_over) {
if (mouse_over == submenu_over)
_activate_submenu(mouse_over);
submenu_over = -1;
}
submenu_over = -1;
}
void PopupMenu::_gui_input(const Ref<InputEvent> &p_event) {