diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-28 23:10:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-28 23:10:53 +0400 |
commit | 2a7f1af61ec8e11e73e2c16ca5579baca04bf78a (patch) | |
tree | a9f9c3dd8d0d5d179a4491ca21986f62c4e89854 /source/blender/bmesh/intern/bmesh_mesh.c | |
parent | d1d11bbe9bc73f8578dbd138d079dc6488b5920d (diff) |
Code Cleanup:
- apply some rules for function naming conventions, added to main bmesh doc in bmesh.h.
- remove unused function BM_loops_to_corners().
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_mesh.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_mesh.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/bmesh/intern/bmesh_mesh.c b/source/blender/bmesh/intern/bmesh_mesh.c index 80a557771c6..31b433db451 100644 --- a/source/blender/bmesh/intern/bmesh_mesh.c +++ b/source/blender/bmesh/intern/bmesh_mesh.c @@ -46,7 +46,7 @@ /* used as an extern, defined in bmesh.h */ int bm_mesh_allocsize_default[4] = {512, 512, 2048, 512}; -static void bmesh_mempool_init(BMesh *bm, const int allocsize[4]) +static void bm_mempool_init(BMesh *bm, const int allocsize[4]) { bm->vpool = BLI_mempool_create(sizeof(BMVert), allocsize[0], allocsize[0], FALSE, TRUE); bm->epool = BLI_mempool_create(sizeof(BMEdge), allocsize[1], allocsize[1], FALSE, TRUE); @@ -79,7 +79,7 @@ BMesh *BM_mesh_create(struct Object *ob, const int allocsize[4]) bm->ob = ob; /* allocate the memory pools for the mesh elements */ - bmesh_mempool_init(bm, allocsize); + bm_mempool_init(bm, allocsize); /* allocate one flag pool that we dont get rid of. */ bm->stackdepth = 1; @@ -172,7 +172,7 @@ void BM_mesh_clear(BMesh *bm) bm->ob = ob; /* allocate the memory pools for the mesh elements */ - bmesh_mempool_init(bm, bm_mesh_allocsize_default); + bm_mempool_init(bm, bm_mesh_allocsize_default); bm->stackdepth = 1; bm->totflags = 1; @@ -322,7 +322,7 @@ void BM_mesh_normals_update(BMesh *bm, const short skip_hidden) */ //keep in sycn with utils.c! #define FACE_FLIP 8 -static void bmesh_rationalize_normals(BMesh *bm, int undo) +static void bm_rationalize_normals(BMesh *bm, int undo) { BMOperator bmop; BMFace *f; @@ -352,7 +352,7 @@ static void bmesh_rationalize_normals(BMesh *bm, int undo) BMO_op_finish(bm, &bmop); } -static void bmesh_mdisps_space_set(BMesh *bm, int from, int to) +static void bm_mdisps_space_set(BMesh *bm, int from, int to) { /* switch multires data out of tangent space */ if (CustomData_has_layer(&bm->ldata, CD_MDISPS)) { @@ -434,7 +434,7 @@ void bmesh_edit_begin(BMesh *bm, int flag) } #else if (flag & BMO_OP_FLAG_RATIONALIZE_NORMALS) { - bmesh_rationalize_normals(bm, 0); + bm_rationalize_normals(bm, 0); } #endif } @@ -454,7 +454,7 @@ void bmesh_edit_end(BMesh *bm, int flag) } #else if (flag & BMO_OP_FLAG_RATIONALIZE_NORMALS) { - bmesh_rationalize_normals(bm, 1); + bm_rationalize_normals(bm, 1); } #endif |