Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-28 19:08:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-28 19:08:13 +0400
commit88d385ef70a1b8775abad29c2ec3180ff3474c82 (patch)
treea07ad22acb9cb1426336738bf437eb6fb4752426 /source/blender/editors
parent33d609144ef60c0223b2925cd39a713ed8c9060c (diff)
fix [#35509] MedianPoint choice has bad normals
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/transform/transform_orientations.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 25c4682a588..70e01ef3718 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -560,10 +560,8 @@ int getTransformOrientation(const bContext *C, float normal[3], float plane[3],
BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) {
if (BM_elem_flag_test(efa, BM_ELEM_SELECT)) {
+ BM_face_calc_plane(efa, vec);
add_v3_v3(normal, efa->no);
- sub_v3_v3v3(vec,
- BM_FACE_FIRST_LOOP(efa)->v->co,
- BM_FACE_FIRST_LOOP(efa)->next->v->co);
add_v3_v3(plane, vec);
}
}