Merge pull request #69341 from TokageItLab/fix-timeline-crash

Fix crash AnimationTimelineEdit when switch FPS mode without track
This commit is contained in:
Rémi Verschelde 2022-11-29 16:50:40 +01:00
commit 6d1702614b
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 3 additions and 1 deletions

View File

@ -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);