diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-27 14:01:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-27 14:01:35 +0400 |
commit | dee671276dcda464dab6dce6a3904e7f373f8d88 (patch) | |
tree | ec02ebdd1e5aaf878fb698970dceb2aa5fda4bc7 /source/blender/bmesh | |
parent | e293a0b1536520de345a6b9aa467b1de832a8fad (diff) |
rename BM_vert_at_index -> BM_vert_at_index_find (since this searches the mempool).
needed for other changes - coming.
Diffstat (limited to 'source/blender/bmesh')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh.c | 6 | ||||
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh.c b/source/blender/bmesh/intern/bmesh_mesh.c index cc2324ba34a..d6d846e44e4 100644 --- a/source/blender/bmesh/intern/bmesh_mesh.c +++ b/source/blender/bmesh/intern/bmesh_mesh.c @@ -829,17 +829,17 @@ void BM_mesh_remap(BMesh *bm, int *vert_idx, int *edge_idx, int *face_idx) BLI_ghash_free(fptr_map, NULL, NULL); } -BMVert *BM_vert_at_index(BMesh *bm, const int index) +BMVert *BM_vert_at_index_find(BMesh *bm, const int index) { return BLI_mempool_findelem(bm->vpool, index); } -BMEdge *BM_edge_at_index(BMesh *bm, const int index) +BMEdge *BM_edge_at_index_find(BMesh *bm, const int index) { return BLI_mempool_findelem(bm->epool, index); } -BMFace *BM_face_at_index(BMesh *bm, const int index) +BMFace *BM_face_at_index_find(BMesh *bm, const int index) { return BLI_mempool_findelem(bm->fpool, index); } diff --git a/source/blender/bmesh/intern/bmesh_mesh.h b/source/blender/bmesh/intern/bmesh_mesh.h index 583b1589290..23429ec3252 100644 --- a/source/blender/bmesh/intern/bmesh_mesh.h +++ b/source/blender/bmesh/intern/bmesh_mesh.h @@ -49,9 +49,9 @@ int BM_mesh_elem_count(BMesh *bm, const char htype); void BM_mesh_remap(BMesh *bm, int *vert_idx, int *edge_idx, int *face_idx); -BMVert *BM_vert_at_index(BMesh *bm, const int index); -BMEdge *BM_edge_at_index(BMesh *bm, const int index); -BMFace *BM_face_at_index(BMesh *bm, const int index); +BMVert *BM_vert_at_index_find(BMesh *bm, const int index); +BMEdge *BM_edge_at_index_find(BMesh *bm, const int index); +BMFace *BM_face_at_index_find(BMesh *bm, const int index); typedef struct BMAllocTemplate { int totvert, totedge, totloop, totface; |