瀏覽代碼

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