[Bf-blender-cvs] [b0169056dfe] sculpt-mode-features: Ignore normal radius on vertex and weight paint

Pablo Dobarro noreply at git.blender.org
Wed Apr 3 00:55:03 CEST 2019


Commit: b0169056dfe6c01791359adf34feaae3e4206762
Author: Pablo Dobarro
Date:   Wed Apr 3 00:54:29 2019 +0200
Branches: sculpt-mode-features
https://developer.blender.org/rBb0169056dfe6c01791359adf34feaae3e4206762

Ignore normal radius on vertex and weight paint

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

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 d78dbaa31d2..c337623fa2f 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -843,7 +843,9 @@ static void calc_area_normal_and_center_task_cb(
 	        sculpt_brush_test_init_with_falloff_shape(ss, &test, data->brush->falloff_shape);
 
 	/* Add the normal radius factor to the test */
-	test.radius_factor = data->brush->normal_radius_factor;
+	if (data->brush->ob_mode == OB_MODE_SCULPT) {
+		test.radius_factor = data->brush->normal_radius_factor;
+	}
 
 	/* when the mesh is edited we can't rely on original coords
 	 * (original mesh may not even have verts in brush radius) */



More information about the Bf-blender-cvs mailing list