Fix T77764: VSE: snap strip to current frame does not move associated

effect strips keyframes along

Maniphest Tasks: T77764

Differential Revision: https://developer.blender.org/D7996
This commit is contained in:
Philipp Oeser 2020-06-11 16:52:12 +02:00
parent dbf96e6252
commit e36c05b3d1
Notes: blender-bot 2023-02-14 07:40:56 +01:00
Referenced by commit 5501a5de32, Fix T84705: Snapping strip handle offset animation
Referenced by issue #77764, VSE: snap strip to current frame does not move associated effect strips keyframes along
1 changed files with 3 additions and 0 deletions

View File

@ -1417,12 +1417,15 @@ static int sequencer_snap_exec(bContext *C, wmOperator *op)
for (seq = ed->seqbasep->first; seq; seq = seq->next) {
if (seq->type & SEQ_TYPE_EFFECT) {
if (seq->seq1 && (seq->seq1->flag & SELECT)) {
BKE_sequencer_offset_animdata(scene, seq, (snap_frame - seq->startdisp));
BKE_sequence_calc(scene, seq);
}
else if (seq->seq2 && (seq->seq2->flag & SELECT)) {
BKE_sequencer_offset_animdata(scene, seq, (snap_frame - seq->startdisp));
BKE_sequence_calc(scene, seq);
}
else if (seq->seq3 && (seq->seq3->flag & SELECT)) {
BKE_sequencer_offset_animdata(scene, seq, (snap_frame - seq->startdisp));
BKE_sequence_calc(scene, seq);
}
}