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
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-11-21 20:22:03 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2009-11-21 20:22:03 +0300
commita1c8d9215151f4dd5f6af27f6bbb5ca426f0ba41 (patch)
tree174df044fa2686040669c204a12cc307e7164779 /source/blender/editors/sculpt_paint
parent2e3326c1533e992ef7eaa43ed876375af4db5de1 (diff)
Sculpt branch:
Corrected the calculation of the center of the flatten effect.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 4b63a388f76..763ef401217 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1056,6 +1056,7 @@ static void calc_flatten_center(Sculpt *sd, SculptSession *ss, PBVHNode **nodes,
for(i = 0; i < FLATTEN_SAMPLE_SIZE; ++i) {
if(vd.dist > outer_dist[i]) {
outer_index[i] = vd.index;
+ outer_dist[i] = vd.dist;
break;
}
}