[Bf-blender-cvs] [81e9011f577] sculpt-mode-features: Fix color fill mask intensity

Pablo Dobarro noreply at git.blender.org
Sun Jun 30 00:36:25 CEST 2019


Commit: 81e9011f577000ca00827c6bb7b6eb9203840a0e
Author: Pablo Dobarro
Date:   Sun Jun 30 00:36:43 2019 +0200
Branches: sculpt-mode-features
https://developer.blender.org/rB81e9011f577000ca00827c6bb7b6eb9203840a0e

Fix color fill mask intensity

I added this multiplication to fix the pressure sensitivity of my broken
wacom pen while testing the paint brush. I should add separate sculpt
and paint strength factors.

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index c9ea21c6315..549bcbd505e 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -2683,7 +2683,6 @@ static void do_mask_brush(Sculpt *sd, Object *ob, PBVHNode **nodes, int totnode)
 static void apply_color(SculptSession *ss, PBVHVertexIter *vd, const Brush *brush, float fade)
 {
   float factor = ss->cache ? fade * fabs(ss->cache->bstrength) : fade;
-  factor *= 2;
   CLAMP(factor, 0.0f, 1.0f);
   char r = brush->rgb[0] * 255;
   char g = brush->rgb[1] * 255;



More information about the Bf-blender-cvs mailing list