From e2a87ec28bbeddcdac007b89238910165fb677f9 Mon Sep 17 00:00:00 2001 From: Ruthger Dijt Date: Mon, 23 Jan 2023 21:59:29 +0100 Subject: [PATCH] fix nullptr dereference in AnimationTimelineEdit --- editor/animation_track_editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index f33fd1d4ddb..9f3893a5dbd 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -4299,6 +4299,8 @@ void AnimationTrackEditor::_update_tracks() { memdelete(track_vbox->get_child(0)); } + timeline->set_track_edit(nullptr); + track_edits.clear(); groups.clear();