Merge pull request #54330 from LennyPhoenix/lennyphoenix-patch-1

This commit is contained in:
Rémi Verschelde 2021-11-15 23:36:12 +01:00 committed by GitHub
commit 86e0a0674a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -471,6 +471,8 @@ void Control::_notification(int p_notification) {
_size_changed();
} break;
case NOTIFICATION_EXIT_TREE: {
ERR_FAIL_COND(!get_viewport());
get_viewport()->_gui_remove_control(this);
} break;