Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-03-29 20:16:36 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-03-29 20:16:36 +0400
commite659cfdaf7285be656ba51ee406e6b6f454de87e (patch)
treebbdc827d15a8e30aeb4e0f0c80758e05e0da6d3e /source
parent73299516fa2ba8abbde2635754726e287bd2da94 (diff)
Change dyntopo detail size calculation slightly so the result is close
to the radius of the widget when setting the detail.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index f8e2fc1f192..d138e9808a2 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)) {