diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-01 21:13:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-01 21:13:02 +0400 |
commit | 1f473a78b80aa4de53d304e4700b98d4a0ae8f1e (patch) | |
tree | a96b1c32994e6abc549ad729442ff98dc79ceeae /source/blender/bmesh/intern/bmesh_structure.c | |
parent | c1e8d77842ab9a208d8bc76205a13c72cdb89983 (diff) |
Code Cleanup: remove bmesh_radial_loop_next() function,
just access l->radial_next
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_structure.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_structure.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/source/blender/bmesh/intern/bmesh_structure.c b/source/blender/bmesh/intern/bmesh_structure.c index 03f116a03ba..ad6a8a615e3 100644 --- a/source/blender/bmesh/intern/bmesh_structure.c +++ b/source/blender/bmesh/intern/bmesh_structure.c @@ -131,7 +131,6 @@ int bmesh_edge_swapverts(BMEdge *e, BMVert *orig, BMVert *newv) * Functions relating to this cycle: * - #bmesh_radial_append * - #bmesh_radial_loop_remove - * - #bmesh_radial_loop_next * - #bmesh_radial_face_find * - #bmesh_radial_facevert_count * - #bmesh_radial_faceloop_find_first @@ -379,7 +378,7 @@ int bmesh_radial_validate(int radlen, BMLoop *l) } i++; - } while ((l_iter = bmesh_radial_loop_next(l_iter)) != l); + } while ((l_iter = l_iter->radial_next) != l); return TRUE; } @@ -438,27 +437,22 @@ BMLoop *bmesh_radial_faceloop_find_first(BMLoop *l, BMVert *v) if (l_iter->v == v) { return l_iter; } - } while ((l_iter = bmesh_radial_loop_next(l_iter)) != l); + } while ((l_iter = l_iter->radial_next) != l); return NULL; } BMLoop *bmesh_radial_faceloop_find_next(BMLoop *l, BMVert *v) { BMLoop *l_iter; - l_iter = bmesh_radial_loop_next(l); + l_iter = l->radial_next; do { if (l_iter->v == v) { return l_iter; } - } while ((l_iter = bmesh_radial_loop_next(l_iter)) != l); + } while ((l_iter = l_iter->radial_next) != l); return l; } -BMLoop *bmesh_radial_loop_next(BMLoop *l) -{ - return l->radial_next; -} - int bmesh_radial_length(BMLoop *l) { BMLoop *l_iter = l; @@ -536,7 +530,7 @@ int bmesh_radial_facevert_count(BMLoop *l, BMVert *v) if (l_iter->v == v) { count++; } - } while ((l_iter = bmesh_radial_loop_next(l_iter)) != l); + } while ((l_iter = l_iter->radial_next) != l); return count; } |