diff options
author | Falk David <falkdavid@gmx.de> | 2021-01-12 20:36:27 +0300 |
---|---|---|
committer | Falk David <falkdavid@gmx.de> | 2021-01-19 14:31:02 +0300 |
commit | a9203e25a2e1f1489b8a3705f8883cdd86f094c7 (patch) | |
tree | 4f83307827863822b5e8ccf213e2da903892d232 /source/blender | |
parent | a86bb2594f1e417041a849c42252125d0ff1b491 (diff) |
Fix T84642: Reassign effect-strip ignores animdata
When reassigning an effect strip to another sequence, any animation data
in the effect strip will not be offset like expected.
The fix calls `SEQ_offset_animdata` to offset the animation data after
the seqence has been moved.
Reviewed By: ISS
Maniphest Tasks: T84642
Differential Revision: https://developer.blender.org/D10096
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index 09e9acb87de..4f9fbc44631 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -1255,7 +1255,9 @@ static int sequencer_reassign_inputs_exec(bContext *C, wmOperator *op) last_seq->seq2 = seq2; last_seq->seq3 = seq3; + int old_start = last_seq->start; SEQ_relations_update_changed_seq_and_deps(scene, last_seq, 1, 1); + SEQ_offset_animdata(scene, last_seq, (last_seq->start - old_start)); WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene); |