1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

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

View File

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