diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-04 20:36:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-04 20:36:31 +0400 |
commit | a0ab2eefb9c99140ebb3daad3be2303caea64b96 (patch) | |
tree | 406ed46881486425ada0baca05b67ed92d5bd01d /source/blender/editors/mesh/loopcut.c | |
parent | 76e9f91d1c9ff5f026ff4e05e76b751f936f83f7 (diff) |
* rename BM_face_other_loop --> BM_face_other_edge_loop
* optimize BM_face_other_edge_loop to do about half as many iterations for quad heavy meshes, with ngons the gain is much more since searching around the entire ngon when the edge already stores its loop is silly.
... also nicer in cases where edge has no face users it avoids a loop on all face corners.
Diffstat (limited to 'source/blender/editors/mesh/loopcut.c')
-rw-r--r-- | source/blender/editors/mesh/loopcut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/mesh/loopcut.c b/source/blender/editors/mesh/loopcut.c index bbc495706ac..59151cf107c 100644 --- a/source/blender/editors/mesh/loopcut.c +++ b/source/blender/editors/mesh/loopcut.c @@ -161,7 +161,7 @@ static void edgering_find_order(BMEditMesh *em, BMEdge *lasteed, BMEdge *eed, return; } - l2 = BM_face_other_loop(l->f, l->e, eed->v1); + l2 = BM_face_other_edge_loop(l->f, l->e, eed->v1); rev = (l2 == l->prev); while (l2->v != lasteed->v1 && l2->v != lasteed->v2) { l2 = rev ? l2->prev : l2->next; |