Explorar o código

Cancel tooltip when hiding the node it belongs to

(cherry picked from commit bc7863775c994009bddd28c8a96fb1845926371f)
James Buck %!s(int64=6) %!d(string=hai) anos
pai
achega
7577dd804a
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      scene/main/viewport.cpp

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