Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Fog <tintwotin>2021-01-25 07:27:23 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-01-25 07:42:10 +0300
commitd6bbcc4f666b257fed3e6f8ec468d0efff5b591f (patch)
treef1765709ab96af699470e42ce3c9909c357906e7 /source/blender/editors/space_sequencer
parent6d21703e8951bfb63ee3aab0bae634548e477e0a (diff)
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
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_add.c3
1 files changed, 3 insertions, 0 deletions
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")) {