[Bf-blender-cvs] [a9203e25a2e] blender-v2.92-release: Fix T84642: Reassign effect-strip ignores animdata
Falk David
noreply at git.blender.org
Tue Jan 19 12:31:12 CET 2021
Commit: a9203e25a2e1f1489b8a3705f8883cdd86f094c7
Author: Falk David
Date: Tue Jan 12 18:36:27 2021 +0100
Branches: blender-v2.92-release
https://developer.blender.org/rBa9203e25a2e1f1489b8a3705f8883cdd86f094c7
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
===================================================================
M source/blender/editors/space_sequencer/sequencer_edit.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list