[Bf-blender-cvs] [8eda776eef3] master: Fix T98057: Adjustment layer blend mode not optimal

Richard Antalik noreply at git.blender.org
Mon May 23 23:37:31 CEST 2022


Commit: 8eda776eef3823aebb5bc71520831418e6703a1c
Author: Richard Antalik
Date:   Mon May 23 23:05:54 2022 +0200
Branches: master
https://developer.blender.org/rB8eda776eef3823aebb5bc71520831418e6703a1c

Fix T98057: Adjustment layer blend mode not optimal

Since adjustment layer is meant to replace original image, cross blend
mode is more optimal than alpha over. Same goes for multicam type.

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

M	source/blender/sequencer/intern/sequencer.c

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

diff --git a/source/blender/sequencer/intern/sequencer.c b/source/blender/sequencer/intern/sequencer.c
index faa527786fd..ad57412034a 100644
--- a/source/blender/sequencer/intern/sequencer.c
+++ b/source/blender/sequencer/intern/sequencer.c
@@ -129,7 +129,13 @@ Sequence *SEQ_sequence_alloc(ListBase *lb, int timeline_frame, int machine, int
   seq->pitch = 1.0f;
   seq->scene_sound = NULL;
   seq->type = type;
-  seq->blend_mode = SEQ_TYPE_ALPHAOVER;
+
+  if (seq->type == SEQ_TYPE_ADJUSTMENT) {
+    seq->blend_mode = SEQ_TYPE_CROSS;
+  }
+  else {
+    seq->blend_mode = SEQ_TYPE_ALPHAOVER;
+  }
 
   seq->strip = seq_strip_alloc(type);
   seq->stereo3d_format = MEM_callocN(sizeof(Stereo3dFormat), "Sequence Stereo Format");



More information about the Bf-blender-cvs mailing list