Median center with PET was wrong (reported by JMS).

Was dividing running sum of vectors by the total number of elements, not by the number of selected elements, as it should have.
This commit is contained in:
Martin Poirier 2005-04-01 20:04:24 +00:00
parent b8e4f1d2aa
commit 02d3ad0b34

@ -605,7 +605,7 @@ void calculateCenterMedian(TransInfo *t)
break;
}
}
VecMulf(partial, 1.0f / t->total);
VecMulf(partial, 1.0f / i);
VECCOPY(t->center, partial);
if (t->flag & (T_EDIT|T_POSE)) {