forked from bartvdbraak/blender
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:
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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user