From 7577dd804afc71998367691f6d8029309664c99c Mon Sep 17 00:00:00 2001 From: James Buck Date: Thu, 25 Apr 2019 11:19:04 -0500 Subject: [PATCH] Cancel tooltip when hiding the node it belongs to (cherry picked from commit bc7863775c994009bddd28c8a96fb1845926371f) --- scene/main/viewport.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 991f4a18957..e31939215e6 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2478,11 +2478,7 @@ void Viewport::_gui_hid_control(Control *p_control) { if (gui.mouse_over == p_control) gui.mouse_over = NULL; if (gui.tooltip == p_control) - gui.tooltip = NULL; - if (gui.tooltip == p_control) { - gui.tooltip = NULL; _gui_cancel_tooltip(); - } } void Viewport::_gui_remove_control(Control *p_control) {