diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-11-08 10:46:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-11-08 10:46:10 +0400 |
commit | 617a73c573c209155a2f5734030d1cc41e0d6a3d (patch) | |
tree | 8796d68b0c1926563abd5e8e1917339e02511ede /source/blender/editors/mesh | |
parent | b0e2218093a1daac03361b9454006bcdba67b725 (diff) |
code cleanup: unused defines & some formatting.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index ca4f0688f86..92ad0742ec9 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -1199,8 +1199,8 @@ static float step_cost_3_v3(const float v1[3], const float v2[3], const float v3 static float edgetag_cut_cost(BMEdge *e1, BMEdge *e2, BMVert *v) { - BMVert *v1 = (e1->v1 == v) ? e1->v2 : e1->v1; - BMVert *v2 = (e2->v1 == v) ? e2->v2 : e2->v1; + BMVert *v1 = BM_edge_other_vert(e1, v); + BMVert *v2 = BM_edge_other_vert(e2, v); return step_cost_3_v3(v1->co, v->co, v2->co); } |