Fix vertex paint alpha brush setting color black

This commit is contained in:
Campbell Barton 2018-04-28 14:47:53 +02:00
parent ffda096413
commit 60f4cb24da
Notes: blender-bot 2023-02-14 11:42:40 +01:00
Referenced by issue #54887, OSL: Cycles Script Node with trace call crashes Blender on render
Referenced by issue #52699, Cycles: Denoising generates artifact(s)
1 changed files with 2 additions and 2 deletions

View File

@ -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;