From a1c8d9215151f4dd5f6af27f6bbb5ca426f0ba41 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Sat, 21 Nov 2009 17:22:03 +0000 Subject: Sculpt branch: Corrected the calculation of the center of the flatten effect. --- source/blender/editors/sculpt_paint/sculpt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/sculpt_paint') 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; } } -- cgit v1.2.3