From 6629cc7a85475d34f96e582c0dfd4b8b30ef92d3 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Wed, 6 Dec 2017 17:27:21 -0200 Subject: Fixed PopupMenu's submenus not showing up in certain situations. --- scene/gui/popup_menu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scene/gui') 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 &p_event) { -- cgit v1.2.3