Fix T46441: texture paint soften brush at 0 strength works at full strength.

This commit is contained in:
Brecht Van Lommel 2015-10-10 23:18:20 +02:00
parent 307d4b3139
commit bb580664e6
Notes: blender-bot 2024-01-30 10:39:01 +01:00
Referenced by issue #46441, Texture painting: the brush soften at 0.0000001 or a 1 strength has the same result
Referenced by issue #117597, Texturepaint broken Soften/Smear Brush in 3Dview for strength > 1 (Image Editor is fine)
1 changed files with 1 additions and 1 deletions

View File

@ -4324,7 +4324,7 @@ static void do_projectpaint_soften(ProjPaintState *ps, ProjPixel *projPixel, flo
}
else {
premul_float_to_straight_uchar(rgba_ub, rgba);
blend_color_interpolate_byte(rgba_ub, rgba_ub, projPixel->pixel.ch_pt, mask);
blend_color_interpolate_byte(rgba_ub, projPixel->pixel.ch_pt, rgba_ub, mask);
}
BLI_linklist_prepend_arena(softenPixels, (void *)projPixel, softenArena);
}