From e539b187a5add6951b25b07c9c22826cc8be6b1a Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Fri, 3 Jan 2020 09:35:00 +0800 Subject: [PATCH] Clears button mask before activating menu item --- scene/gui/popup_menu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp index e6333a6179d..87f17838cf3 100644 --- a/scene/gui/popup_menu.cpp +++ b/scene/gui/popup_menu.cpp @@ -309,6 +309,7 @@ void PopupMenu::_gui_input(const Ref &p_event) { bool was_during_grabbed_click = during_grabbed_click; during_grabbed_click = false; + initial_button_mask = 0; int over = _get_mouse_over(b->get_position());