Fix warn print when hide an control does not inside_tree

(cherry picked from commit 5ec7d3f264)
This commit is contained in:
sanikoyes 2016-04-07 15:46:38 +08:00 committed by Rémi Verschelde
parent 02afea1e4e
commit 76eeb457d3
1 changed files with 5 additions and 2 deletions

View File

@ -524,8 +524,11 @@ void Control::_notification(int p_notification) {
if(get_viewport() != NULL)
get_viewport()->_gui_hid_control(this);
if(is_inside_tree()) {
_modal_stack_remove();
minimum_size_changed();
}
//remove key focus
//remove modalness