Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_add.c
| Show First 20 Lines • Show All 1,063 Lines • ▼ Show 20 Lines | if (seq->type == SEQ_TYPE_COLOR) { | ||||
| seq->blend_mode = SEQ_TYPE_CROSS; | seq->blend_mode = SEQ_TYPE_CROSS; | ||||
| } | } | ||||
| else if (seq->type == SEQ_TYPE_ADJUSTMENT) { | else if (seq->type == SEQ_TYPE_ADJUSTMENT) { | ||||
| seq->blend_mode = SEQ_TYPE_CROSS; | seq->blend_mode = SEQ_TYPE_CROSS; | ||||
| } | } | ||||
| else if (seq->type == SEQ_TYPE_TEXT) { | else if (seq->type == SEQ_TYPE_TEXT) { | ||||
| seq->blend_mode = SEQ_TYPE_ALPHAOVER; | seq->blend_mode = SEQ_TYPE_ALPHAOVER; | ||||
| } | } | ||||
| else if (SEQ_effect_get_num_inputs(seq->type) == 1) { | |||||
| seq->blend_mode = seq1->blend_mode; | |||||
| } | |||||
| /* Set channel. If unset, use lowest free one above strips. */ | /* Set channel. If unset, use lowest free one above strips. */ | ||||
| if (!RNA_struct_property_is_set(op->ptr, "channel")) { | if (!RNA_struct_property_is_set(op->ptr, "channel")) { | ||||
| if (seq->seq1) { | if (seq->seq1) { | ||||
| int chan = max_iii(seq->seq1 ? seq->seq1->machine : 0, | int chan = max_iii(seq->seq1 ? seq->seq1->machine : 0, | ||||
| seq->seq2 ? seq->seq2->machine : 0, | seq->seq2 ? seq->seq2->machine : 0, | ||||
| seq->seq3 ? seq->seq3->machine : 0); | seq->seq3 ? seq->seq3->machine : 0); | ||||
| if (chan < MAXSEQ) { | if (chan < MAXSEQ) { | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||