2
0
Эх сурвалжийг харах

Cancel tooltip when hiding the node it belongs to

(cherry picked from commit bc7863775c994009bddd28c8a96fb1845926371f)
James Buck 6 жил өмнө
parent
commit
7577dd804a

+ 0 - 4
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) {