[Bf-blender-cvs] [7163db99c4d] master: Fix T97096: Color filter brush was corrupting alpha.

Joseph Eagar noreply at git.blender.org
Mon Apr 11 19:19:47 CEST 2022


Commit: 7163db99c4d8b908fb2c7c7768754b91cac0eb5e
Author: Joseph Eagar
Date:   Mon Apr 11 10:18:03 2022 -0700
Branches: master
https://developer.blender.org/rB7163db99c4d8b908fb2c7c7768754b91cac0eb5e

Fix T97096: Color filter brush was corrupting alpha.

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

M	source/blender/editors/sculpt_paint/sculpt_filter_color.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.c b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
index e4180a36a98..ebebd9efd80 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
@@ -109,6 +109,7 @@ static void color_filter_task_cb(void *__restrict userdata,
     }
 
     copy_v3_v3(orig_color, orig_data.col);
+    final_color[3] = orig_data.col[3]; /* Copy alpha */
 
     switch (mode) {
       case COLOR_FILTER_FILL: {



More information about the Bf-blender-cvs mailing list