Ver Fonte

Fixed segfault when hovering over scene tree elements and showing tooltips.

Wilson E. Alvarez há 8 anos atrás
pai
commit
0017e21521
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      scene/main/viewport.cpp

+ 4 - 0
scene/main/viewport.cpp

@@ -1456,6 +1456,10 @@ void Viewport::_gui_show_tooltip() {
 		gui.tooltip_popup = NULL;
 	}
 
+	if (!gui.tooltip) {
+		return;
+	}
+
 	Control *rp = gui.tooltip->get_root_parent_control();
 	if (!rp)
 		return;