Merge pull request #28419 from jbuck3/tooltip-hide-fix

Cancel tooltip when hiding the node it belongs to
This commit is contained in:
Rémi Verschelde 2019-04-25 22:55:21 +02:00 committed by GitHub
commit 562a64f982
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {