[Bf-blender-cvs] [525a8bdf1dd] master: Sculpt/Paint: Invert curve alpha overlay
Pablo Dobarro
noreply at git.blender.org
Mon Oct 7 15:24:07 CEST 2019
Commit: 525a8bdf1ddd0eff4f1c0b6b6df56f61c712f586
Author: Pablo Dobarro
Date: Sat Oct 5 20:58:19 2019 +0200
Branches: master
https://developer.blender.org/rB525a8bdf1ddd0eff4f1c0b6b6df56f61c712f586
Sculpt/Paint: Invert curve alpha overlay
Reviewed By: billreynish
Differential Revision: https://developer.blender.org/D5998
===================================================================
M source/blender/editors/sculpt_paint/paint_cursor.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list