diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-26 19:57:00 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-26 19:57:00 +0400 |
commit | adbe628a1b6dfe4f61ce56fede9cc9ebba19caa7 (patch) | |
tree | 00eaa7d02e2736fda6214421ead71ef559f07cca /source/blender/editors | |
parent | 3d5111a5edba9e0e4947aba866cba083a20853a0 (diff) |
Fix crash of Refresh Sequencer when some Movie / MovieClip strips doesn't have animation opened
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index 935c17b1af0..0afb2e461b5 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -1311,29 +1311,7 @@ static void sequencer_refresh_all_length(Scene *scene, Editing *ed) Sequence *seq; SEQP_BEGIN(ed, seq) { - int changed = FALSE; - - switch (seq->type) { - case SEQ_SCENE: - seq->len = seq->scene->r.efra - seq->scene->r.sfra + 1; - changed = TRUE; - break; - case SEQ_MOVIECLIP: - seq->len = BKE_movieclip_get_duration(seq->clip); - changed = TRUE; - break; - case SEQ_MOVIE: - seq->len = IMB_anim_get_duration(seq->anim, IMB_TC_RECORD_RUN); - changed = TRUE; - break; - } - - if (changed) { - calc_sequence_disp(scene, seq); - - if (seq_test_overlap(ed->seqbasep, seq)) - shuffle_seq(ed->seqbasep, seq, scene); - } + seq_update_sequence_length(scene, ed, seq); } SEQ_END } |