Cancel tooltip when hiding the node it belongs to
(cherry picked from commit bc7863775c
)
This commit is contained in:
parent
8ef5052967
commit
7577dd804a
|
@ -2478,11 +2478,7 @@ void Viewport::_gui_hid_control(Control *p_control) {
|
||||||
if (gui.mouse_over == p_control)
|
if (gui.mouse_over == p_control)
|
||||||
gui.mouse_over = NULL;
|
gui.mouse_over = NULL;
|
||||||
if (gui.tooltip == p_control)
|
if (gui.tooltip == p_control)
|
||||||
gui.tooltip = NULL;
|
|
||||||
if (gui.tooltip == p_control) {
|
|
||||||
gui.tooltip = NULL;
|
|
||||||
_gui_cancel_tooltip();
|
_gui_cancel_tooltip();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Viewport::_gui_remove_control(Control *p_control) {
|
void Viewport::_gui_remove_control(Control *p_control) {
|
||||||
|
|
Loading…
Reference in New Issue