diff options
author | Richard Antalik <richardantalik@gmail.com> | 2022-06-13 21:40:46 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2022-06-13 21:46:39 +0300 |
commit | 988fc2493052adfe84e492776370132ff098c358 (patch) | |
tree | 40b3fd66d092a5ba653174bf0801f52e15cf8e6e /source/blender/sequencer/intern | |
parent | 3b7ce7023267635b878a046a8ab8ecccf9e66718 (diff) |
Fix T93500: Sequence.fps returns 0 when proxy is used
Caused by `seq_open_anim_file` early returning if anim struct exists,
exen if it's not initialized. To ensure `anim` struct is initialized
when `openfile` argument is true, don't do early return.
Diffstat (limited to 'source/blender/sequencer/intern')
-rw-r--r-- | source/blender/sequencer/intern/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/sequencer/intern/utils.c b/source/blender/sequencer/intern/utils.c index 260f82310fb..3cfe63e284f 100644 --- a/source/blender/sequencer/intern/utils.c +++ b/source/blender/sequencer/intern/utils.c @@ -217,7 +217,7 @@ void seq_open_anim_file(Scene *scene, Sequence *seq, bool openfile) const bool is_multiview = (seq->flag & SEQ_USE_VIEWS) != 0 && (scene->r.scemode & R_MULTIVIEW) != 0; - if ((seq->anims.first != NULL) && (((StripAnim *)seq->anims.first)->anim != NULL)) { + if ((seq->anims.first != NULL) && (((StripAnim *)seq->anims.first)->anim != NULL) && !openfile) { return; } |