[Bf-blender-cvs] [1fd824345d5] blender-v3.0-release: VSE: Fix strip with mask modifier not blending

Richard Antalik noreply at git.blender.org
Mon Jan 10 17:04:41 CET 2022


Commit: 1fd824345d5239c9c15d8aa1ad7f29ef7bb99112
Author: Richard Antalik
Date:   Mon Dec 6 15:20:15 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB1fd824345d5239c9c15d8aa1ad7f29ef7bb99112

VSE: Fix strip with mask modifier not blending

Set `ibuf->planes` to `R_IMF_PLANES_RGBA` because mask modifier adds
transparent areas to image.

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

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

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

diff --git a/source/blender/sequencer/intern/modifier.c b/source/blender/sequencer/intern/modifier.c
index 1a63f4c4655..00ae88232fd 100644
--- a/source/blender/sequencer/intern/modifier.c
+++ b/source/blender/sequencer/intern/modifier.c
@@ -1161,6 +1161,7 @@ static void maskmodifier_apply(struct SequenceModifierData *UNUSED(smd), ImBuf *
   // SequencerMaskModifierData *bcmd = (SequencerMaskModifierData *)smd;
 
   modifier_apply_threaded(ibuf, mask, maskmodifier_apply_threaded, NULL);
+  ibuf->planes = R_IMF_PLANES_RGBA;
 }
 
 static SequenceModifierTypeInfo seqModifier_Mask = {



More information about the Bf-blender-cvs mailing list