diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2017-12-06 17:27:21 -0200 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2017-12-06 17:27:21 -0200 |
commit | 6629cc7a85475d34f96e582c0dfd4b8b30ef92d3 (patch) | |
tree | 3de9c3096b7441ef0ced56659e5e2852de77bd14 | |
parent | e0c00efb99a760eba3d70276f2f06c1ed0d97242 (diff) |
Fixed PopupMenu's submenus not showing up in certain situations.
-rw-r--r-- | scene/gui/popup_menu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index f3711b86b6..4ee6f93c9a 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -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) { |