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

This commit is contained in:
Wilson E. Alvarez 2017-08-20 21:48:03 -04:00
parent 35d5724519
commit 0017e21521

View File

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