From a0ab2eefb9c99140ebb3daad3be2303caea64b96 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 4 Mar 2012 16:36:31 +0000 Subject: * 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. --- source/blender/editors/util/crazyspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/util') diff --git a/source/blender/editors/util/crazyspace.c b/source/blender/editors/util/crazyspace.c index 8f9d32f0899..06309293f9a 100644 --- a/source/blender/editors/util/crazyspace.c +++ b/source/blender/editors/util/crazyspace.c @@ -153,7 +153,7 @@ void crazyspace_set_quats_editmesh(BMEditMesh *em, float *origcos, float *mapped continue; BM_ITER(l, &liter, em->bm, BM_LOOPS_OF_VERT, v) { - BMLoop *l2 = BM_face_other_loop(l->f, l->e, v); + BMLoop *l2 = BM_face_other_edge_loop(l->f, l->e, v); /* retrieve mapped coordinates */ v1= mappedcos + 3*BM_elem_index_get(l->v); -- cgit v1.2.3