Merge pull request #71940 from RuthgerD/nullptrfixup

Fix nullptr dereference in AnimationTimelineEdit
This commit is contained in:
Yuri Sizov 2023-02-11 23:42:22 +03:00 committed by GitHub
commit c7d5596955
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4299,6 +4299,8 @@ void AnimationTrackEditor::_update_tracks() {
memdelete(track_vbox->get_child(0)); memdelete(track_vbox->get_child(0));
} }
timeline->set_track_edit(nullptr);
track_edits.clear(); track_edits.clear();
groups.clear(); groups.clear();