[Bf-blender-cvs] [a1b1c840a09] temp_bmesh_multires: Adjust weighting for color boundary tool

Joseph Eagar noreply at git.blender.org
Wed Nov 4 04:41:29 CET 2020


Commit: a1b1c840a0926f55b254c84112629804265da306
Author: Joseph Eagar
Date:   Tue Nov 3 19:41:18 2020 -0800
Branches: temp_bmesh_multires
https://developer.blender.org/rBa1b1c840a0926f55b254c84112629804265da306

Adjust weighting for color boundary tool

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_smooth.c b/source/blender/editors/sculpt_paint/sculpt_smooth.c
index c92611e7481..9428f409380 100644
--- a/source/blender/editors/sculpt_paint/sculpt_smooth.c
+++ b/source/blender/editors/sculpt_paint/sculpt_smooth.c
@@ -761,14 +761,12 @@ static void do_smooth_vcol_boundary_brush_task_cb_ex(void *__restrict userdata,
         const float *col = SCULPT_vertex_color_get(ss, ni.vertex);
         const float *co = SCULPT_vertex_co_get(ss, ni.vertex);
 
-        //simple color metric
+        // simple color metric
         float dv[4];
         sub_v4_v4v4(dv, col, avg);
         float w = (fabs(dv[0]) + fabs(dv[1]) + fabs(dv[2]) + fabs(dv[3])) / 4.0;
 
-        //w = 1.0f - w;
-        //w = fabs(0.5 - w);
-        w *= w * w;
+        w *= w;
 
         madd_v3_v3fl(avg2, co, w);
         tot2 += w;



More information about the Bf-blender-cvs mailing list