Unfocus Control on NOTIFICATION_EXIT_TREE

(cherry picked from commit be2d59fa0a)
This commit is contained in:
PucklaMotzer09 2021-12-26 17:53:07 +01:00 committed by Rémi Verschelde
parent 2dc30888bf
commit 05eb33e701
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -472,7 +472,7 @@ void Control::_notification(int p_notification) {
} break; } break;
case NOTIFICATION_EXIT_TREE: { case NOTIFICATION_EXIT_TREE: {
ERR_FAIL_COND(!get_viewport()); ERR_FAIL_COND(!get_viewport());
release_focus();
get_viewport()->_gui_remove_control(this); get_viewport()->_gui_remove_control(this);
} break; } break;