diff options
author | James Buck <jamesbuck11@gmail.com> | 2019-04-25 11:19:04 -0500 |
---|---|---|
committer | James Buck <jamesbuck11@gmail.com> | 2019-04-25 11:19:31 -0500 |
commit | bc7863775c994009bddd28c8a96fb1845926371f (patch) | |
tree | a8e1ce3c1561f88936683a94f43b1859c3525fc6 /scene/main | |
parent | cce2e4b07c1c4b6f2f9d72cac340d9f9ecbb790e (diff) |
Cancel tooltip when hiding the node it belongs to
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/viewport.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 52f63ddc1d..ae2c571201 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2482,11 +2482,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) { |