[Bf-blender-cvs] [e659cfd] master: Change dyntopo detail size calculation slightly so the result is close to the radius of the widget when setting the detail.

Antony Riakiotakis noreply at git.blender.org
Sat Mar 29 17:16:45 CET 2014


Commit: e659cfdaf7285be656ba51ee406e6b6f454de87e
Author: Antony Riakiotakis
Date:   Sat Mar 29 18:16:36 2014 +0200
https://developer.blender.org/rBe659cfdaf7285be656ba51ee406e6b6f454de87e

Change dyntopo detail size calculation slightly so the result is close
to the radius of the widget when setting the detail.

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

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 f8e2fc1..d138e98 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -4553,7 +4553,7 @@ static void sculpt_stroke_update_step(bContext *C, struct PaintStroke *UNUSED(st
 		BKE_pbvh_bmesh_detail_size_set(ss->pbvh,
 		                               (ss->cache->radius /
 		                                (float)ups->pixel_radius) *
-		                               (float)sd->detail_size);
+									   (float)sd->detail_size / 0.4f);
 	}
 
 	if (sculpt_stroke_dynamic_topology(ss, brush)) {




More information about the Bf-blender-cvs mailing list