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>2012-02-16 19:13:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-16 19:13:29 +0400
commit300bfd23e4a8bae368d41ccd3b3c2f06a122bd9d (patch)
tree3f7549339e3aefb6c10bb5449623a4c9f27c3734 /source/blender/editors/transform/transform_orientations.c
parent008f0e73eefb8496da0a5a5196681e0164216ad7 (diff)
minor style cleanup, use macros for first loop and far name changes.
Diffstat (limited to 'source/blender/editors/transform/transform_orientations.c')
-rw-r--r--source/blender/editors/transform/transform_orientations.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_orientations.c b/source/blender/editors/transform/transform_orientations.c
index 5d92ada60e3..33f3ad45a08 100644
--- a/source/blender/editors/transform/transform_orientations.c
+++ b/source/blender/editors/transform/transform_orientations.c
@@ -620,8 +620,8 @@ int getTransformOrientation(const bContext *C, float normal[3], float plane[3],
if(BM_elem_flag_test(efa, BM_ELEM_SELECT)) {
add_v3_v3(normal, efa->no);
sub_v3_v3v3(vec,
- ((BMLoopList*)efa->loops.first)->first->v->co,
- (((BMLoopList*)efa->loops.first)->first->next)->v->co);
+ BM_FACE_FIRST_LOOP(efa)->v->co,
+ BM_FACE_FIRST_LOOP(efa)->next->v->co);
add_v3_v3(plane, vec);
}
}