[Bf-blender-cvs] [d6bbcc4f666] master: VSE: Inherit blend mode with single input effects

Peter Fog noreply at git.blender.org
Mon Jan 25 05:49:22 CET 2021


Commit: d6bbcc4f666b257fed3e6f8ec468d0efff5b591f
Author: Peter Fog
Date:   Mon Jan 25 05:27:23 2021 +0100
Branches: master
https://developer.blender.org/rBd6bbcc4f666b257fed3e6f8ec468d0efff5b591f

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

===================================================================

M	source/blender/editors/space_sequencer/sequencer_add.c

===================================================================

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")) {



More information about the Bf-blender-cvs mailing list