Sculpt branch:

Corrected the calculation of the center of the flatten effect.
This commit is contained in:
Nicholas Bishop
2009-11-21 17:22:03 +00:00
parent 2e3326c153
commit a1c8d92151

View File

@@ -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;
}
}