1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

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:
Rémi Verschelde
2016-04-07 14:10:50 +02:00

View File

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