diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-03-20 03:34:12 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-03-20 03:40:53 +0300 |
commit | 3433d1b7f43a587312e05aa4b5b3d7a44b57bc1b (patch) | |
tree | b4eff4e8f5039b32b45dea5fb74176622b8d2796 /source/blender/sequencer/intern/strip_add.c | |
parent | c81dfa2426084ab9e580047f568e4066cac34f2d (diff) |
Fix T86355: Added effect strip has wrong length
SEQ_add_effect_strip used SeqLoadData.image.end_frame to set end
frame. This was mistake introduced in last refactoring patch.
Use effect data, not image data, when adding effect strips.
Reviewed By: sergey
Differential Revision: D10633
Diffstat (limited to 'source/blender/sequencer/intern/strip_add.c')
-rw-r--r-- | source/blender/sequencer/intern/strip_add.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/sequencer/intern/strip_add.c b/source/blender/sequencer/intern/strip_add.c index 99a01dbe791..d90524ddbd7 100644 --- a/source/blender/sequencer/intern/strip_add.c +++ b/source/blender/sequencer/intern/strip_add.c @@ -226,8 +226,9 @@ Sequence *SEQ_add_effect_strip(Scene *scene, ListBase *seqbase, struct SeqLoadDa if (!load_data->effect.seq1) { seq->len = 1; /* Effect is generator, set non zero length. */ - SEQ_transform_set_right_handle_frame(seq, load_data->image.end_frame); + SEQ_transform_set_right_handle_frame(seq, load_data->effect.end_frame); } + SEQ_relations_update_changed_seq_and_deps(scene, seq, 1, 1); /* Runs SEQ_time_update_sequence. */ seq_add_set_name(seq, load_data); seq_add_generic_update(scene, seqbase, seq); |