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:
authorCampbell Barton <ideasman42@gmail.com>2018-04-28 15:47:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-28 15:47:53 +0300
commit60f4cb24da7462766ea73318f1ff446d803f6319 (patch)
tree84f1fc3127ebf84275b707ad5bea4406d7a1e7b8 /source/blender/editors/sculpt_paint/paint_vertex_color_utils.c
parentffda096413b496c3d65d8d64c728020be8699d91 (diff)
Fix vertex paint alpha brush setting color black
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_vertex_color_utils.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_vertex_color_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex_color_utils.c b/source/blender/editors/sculpt_paint/paint_vertex_color_utils.c
index 0cdb1e2f57e..a0bd5ea2a2d 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex_color_utils.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex_color_utils.c
@@ -577,7 +577,7 @@ BLI_INLINE uint mcol_alpha_add(uint col_src, int fac)
{
uchar *cp_src, *cp_mix;
int temp;
- uint col_mix = 0;
+ uint col_mix = col_src;
if (fac == 0) {
return col_src;
@@ -596,7 +596,7 @@ BLI_INLINE uint mcol_alpha_sub(uint col_src, int fac)
{
uchar *cp_src, *cp_mix;
int temp;
- uint col_mix = 0;
+ uint col_mix = col_src;
if (fac == 0) {
return col_src;