Fix GDScript crash when call show/hide in func _exit_tree

(cherry picked from commit 0c6f089ce4)
This commit is contained in:
sanikoyes 2016-03-22 12:46:33 +08:00 committed by Rémi Verschelde
parent 523625a3d1
commit 54625bb771

View file

@ -522,8 +522,8 @@ void Control::_notification(int p_notification) {
if (!is_visible()) {
get_viewport()->_gui_hid_control(this);
if(get_viewport() != NULL)
get_viewport()->_gui_hid_control(this);
_modal_stack_remove();
minimum_size_changed();