Merge pull request #54152 from bjauny/fix_treenotification

This commit is contained in:
Rémi Verschelde 2021-10-23 18:33:32 +02:00 committed by GitHub
commit 5a48cba649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2795,7 +2795,9 @@ int Tree::_get_title_button_height() const {
void Tree::_notification(int p_what) {
if (p_what == NOTIFICATION_FOCUS_ENTER) {
focus_in_id = get_tree()->get_event_count();
if (get_tree()) {
focus_in_id = get_tree()->get_event_count();
}
}
if (p_what == NOTIFICATION_MOUSE_EXIT) {
if (cache.hover_type != Cache::CLICK_NONE) {