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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user