From d6bbcc4f666b257fed3e6f8ec468d0efff5b591f Mon Sep 17 00:00:00 2001 From: Peter Fog Date: Mon, 25 Jan 2021 05:27:23 +0100 Subject: [PATCH] VSE: Inherit blend mode with single input effects It is very likely, that after applying effect like transform or speed on strip with certain blending, user would want to change effect blending to match original strip. Feature suggested on RCS: https://blender.community/c/rightclickselect/HVgbbc/ Reviewed By: ISS Differential Revision: https://developer.blender.org/D10156 --- source/blender/editors/space_sequencer/sequencer_add.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/editors/space_sequencer/sequencer_add.c b/source/blender/editors/space_sequencer/sequencer_add.c index f9076145f2f..516d3bba16f 100644 --- a/source/blender/editors/space_sequencer/sequencer_add.c +++ b/source/blender/editors/space_sequencer/sequencer_add.c @@ -1069,6 +1069,9 @@ static int sequencer_add_effect_strip_exec(bContext *C, wmOperator *op) else if (seq->type == SEQ_TYPE_TEXT) { 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. */ if (!RNA_struct_property_is_set(op->ptr, "channel")) {