Merge pull request #4257 from sanikoyes/Pr-gui-fix-warn
Fix warn print when hide an control does not inside_tree
This commit is contained in:
commit
33d63f42f5
1 changed files with 5 additions and 2 deletions
|
@ -604,8 +604,11 @@ void Control::_notification(int p_notification) {
|
||||||
|
|
||||||
if(get_viewport() != NULL)
|
if(get_viewport() != NULL)
|
||||||
get_viewport()->_gui_hid_control(this);
|
get_viewport()->_gui_hid_control(this);
|
||||||
|
|
||||||
|
if(is_inside_tree()) {
|
||||||
_modal_stack_remove();
|
_modal_stack_remove();
|
||||||
minimum_size_changed();
|
minimum_size_changed();
|
||||||
|
}
|
||||||
|
|
||||||
//remove key focus
|
//remove key focus
|
||||||
//remove modalness
|
//remove modalness
|
||||||
|
|
Loading…
Reference in a new issue