diff options
author | Martin Poirier <theeth@yahoo.com> | 2005-04-02 00:04:24 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2005-04-02 00:04:24 +0400 |
commit | 02d3ad0b34c88be3cd8b581812a7faa08fa16d1b (patch) | |
tree | 179ca1407414b6c10972080180cc1cd5d420a829 | |
parent | b8e4f1d2aafae51bf76542b8d145a15ebfff0695 (diff) |
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.
-rwxr-xr-x | source/blender/src/transform_generics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/transform_generics.c b/source/blender/src/transform_generics.c index 5cac3a507cf..cba1981679d 100755 --- a/source/blender/src/transform_generics.c +++ b/source/blender/src/transform_generics.c @@ -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)) { |