Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_edit.c
| Show First 20 Lines • Show All 1,313 Lines • ▼ Show 20 Lines | static int sequencer_snap_exec(bContext *C, wmOperator *op) | ||||
| * Don't use SEQP_BEGIN since that would be recursive. */ | * Don't use SEQP_BEGIN since that would be recursive. */ | ||||
| for (seq = ed->seqbasep->first; seq; seq = seq->next) { | for (seq = ed->seqbasep->first; seq; seq = seq->next) { | ||||
| if (seq->flag & SELECT && !(seq->depth == 0 && seq->flag & SEQ_LOCK)) { | if (seq->flag & SELECT && !(seq->depth == 0 && seq->flag & SEQ_LOCK)) { | ||||
| seq->flag &= ~SEQ_OVERLAP; | seq->flag &= ~SEQ_OVERLAP; | ||||
| if (BKE_sequence_test_overlap(ed->seqbasep, seq)) { | if (BKE_sequence_test_overlap(ed->seqbasep, seq)) { | ||||
| BKE_sequence_base_shuffle(ed->seqbasep, seq, scene); | BKE_sequence_base_shuffle(ed->seqbasep, seq, scene); | ||||
| } | } | ||||
| } | } | ||||
| else if (seq->type & SEQ_TYPE_EFFECT) { | } | ||||
| /* Recalculate bounds of effect strips. */ | |||||
| for (seq = ed->seqbasep->first; seq; seq = seq->next) { | |||||
| if (seq->type & SEQ_TYPE_EFFECT) { | |||||
| if (seq->seq1 && (seq->seq1->flag & SELECT)) { | if (seq->seq1 && (seq->seq1->flag & SELECT)) { | ||||
| BKE_sequence_calc(scene, seq); | BKE_sequence_calc(scene, seq); | ||||
| } | } | ||||
| else if (seq->seq2 && (seq->seq2->flag & SELECT)) { | else if (seq->seq2 && (seq->seq2->flag & SELECT)) { | ||||
| BKE_sequence_calc(scene, seq); | BKE_sequence_calc(scene, seq); | ||||
| } | } | ||||
| else if (seq->seq3 && (seq->seq3->flag & SELECT)) { | else if (seq->seq3 && (seq->seq3->flag & SELECT)) { | ||||
| BKE_sequence_calc(scene, seq); | BKE_sequence_calc(scene, seq); | ||||
| ▲ Show 20 Lines • Show All 2,979 Lines • Show Last 20 Lines | |||||