Преглед на файлове

Cancel tooltip when hiding the node it belongs to

(cherry picked from commit bc7863775c994009bddd28c8a96fb1845926371f)
James Buck преди 6 години
родител
ревизия
7577dd804a
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  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) {