diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-10-05 21:58:19 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-10-07 16:26:05 +0300 |
commit | 525a8bdf1ddd0eff4f1c0b6b6df56f61c712f586 (patch) | |
tree | 3a8bd2c4bbe5856356432a8469d172edf2d19cb9 /source/blender/editors/sculpt_paint/paint_cursor.c | |
parent | afb9bdc320ae8be7880586645243655386ab70c7 (diff) |
Sculpt/Paint: Invert curve alpha overlay
Reviewed By: billreynish
Differential Revision: https://developer.blender.org/D5998
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_cursor.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 774d4ef09b1..16f07923a3a 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -410,7 +410,7 @@ static void load_tex_cursor_task_cb(void *__restrict userdata, if (len <= 1.0f) { float avg = BKE_brush_curve_strength_clamped(br, len, 1.0f); /* Falloff curve */ - buffer[index] = 255 - (GLubyte)(255 * avg); + buffer[index] = (GLubyte)(255 * avg); } else { buffer[index] = 0; |