From 525a8bdf1ddd0eff4f1c0b6b6df56f61c712f586 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Sat, 5 Oct 2019 20:58:19 +0200 Subject: Sculpt/Paint: Invert curve alpha overlay Reviewed By: billreynish Differential Revision: https://developer.blender.org/D5998 --- source/blender/editors/sculpt_paint/paint_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint') 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; -- cgit v1.2.3