Fix GDScript crash when call show/hide in func _exit_tree
This commit is contained in:
parent
a895e2e372
commit
0c6f089ce4
|
@ -525,7 +525,7 @@ void Control::_notification(int p_notification) {
|
||||||
|
|
||||||
if (!is_visible()) {
|
if (!is_visible()) {
|
||||||
|
|
||||||
|
if(get_viewport() != NULL)
|
||||||
get_viewport()->_gui_hid_control(this);
|
get_viewport()->_gui_hid_control(this);
|
||||||
_modal_stack_remove();
|
_modal_stack_remove();
|
||||||
minimum_size_changed();
|
minimum_size_changed();
|
||||||
|
|
Loading…
Reference in New Issue