diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-29 16:50:40 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-11-29 16:50:40 +0100 |
commit | 6d1702614ba42dcde809c765bb49f544e399830d (patch) | |
tree | d00a2b6b769429f2094eb3e51f51e404a66a9ee9 /editor | |
parent | 5669834f8209c1c98890a44817f48fcdc33d0dd1 (diff) | |
parent | f544b8f844754178b531548b90bd0c6f85d18c7a (diff) |
Merge pull request #69341 from TokageItLab/fix-timeline-crash
Fix crash AnimationTimelineEdit when switch FPS mode without track
Diffstat (limited to 'editor')
-rw-r--r-- | editor/animation_track_editor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 9a628d8794..7c403b7523 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -1754,7 +1754,9 @@ void AnimationTimelineEdit::update_values() { length->set_step(1); length->set_tooltip_text(TTR("Animation length (frames)")); time_icon->set_tooltip_text(TTR("Animation length (frames)")); - track_edit->editor->_update_key_edit(); + if (track_edit) { + track_edit->editor->_update_key_edit(); + } } else { length->set_value(animation->get_length()); length->set_step(0.001); |