summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorSilc Renew <tokage.it.lab@gmail.com>2022-11-30 00:27:56 +0900
committerSilc Renew <tokage.it.lab@gmail.com>2022-11-30 00:27:56 +0900
commitf544b8f844754178b531548b90bd0c6f85d18c7a (patch)
tree5894f69575e7efc99a39bdb5d97d9d1652a75ca8 /editor
parent6fdbf79046b6404331017c53044507e639efdcc3 (diff)
Fix crash AnimationTimelineEdit when switch FPS mode without track
Diffstat (limited to 'editor')
-rw-r--r--editor/animation_track_editor.cpp4
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);