[Bf-blender-cvs] [486b0e04e62] greasepencil-object: GPencil: Fix Vertex Paint brush does not paint in center
Antonio Vazquez
noreply at git.blender.org
Mon Nov 11 16:22:37 CET 2019
Commit: 486b0e04e627f013f490c7c8e14370dcdb22ec1b
Author: Antonio Vazquez
Date: Mon Nov 11 15:52:40 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB486b0e04e627f013f490c7c8e14370dcdb22ec1b
GPencil: Fix Vertex Paint brush does not paint in center
The brush curve factor was inverted.
===================================================================
M source/blender/editors/gpencil/gpencil_vertex_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_vertex_paint.c b/source/blender/editors/gpencil/gpencil_vertex_paint.c
index 681838f1379..33a7a22f232 100644
--- a/source/blender/editors/gpencil/gpencil_vertex_paint.c
+++ b/source/blender/editors/gpencil/gpencil_vertex_paint.c
@@ -235,7 +235,7 @@ static float brush_influence_calc(tGP_BrushVertexpaintData *gso, const int radiu
/* Apply Brush curve. */
if (brush->curve) {
- float brush_fallof = BKE_curvemapping_evaluateF(brush->curve, 0, fac);
+ float brush_fallof = BKE_curvemapping_evaluateF(brush->curve, 0, 1.0f - fac);
influence *= brush_fallof;
}
/* apply multiframe falloff */
More information about the Bf-blender-cvs
mailing list