diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:23:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-26 18:25:16 +0400 |
commit | 88a0fe5f1bc52ebd918be1f63af57cf0f9d594d1 (patch) | |
tree | dae0ebda56ceba3d2ed714ec13e0b8930ea333e8 /source/blender/bmesh/intern/bmesh_edgeloop.c | |
parent | c67bd49e5607cc3db7446d4b12e1346fc9b2c83a (diff) |
Code cleanup: use 'const' for arrays (bmesh)
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_edgeloop.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_edgeloop.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/bmesh/intern/bmesh_edgeloop.c b/source/blender/bmesh/intern/bmesh_edgeloop.c index 08c405f9569..82c9f6234c0 100644 --- a/source/blender/bmesh/intern/bmesh_edgeloop.c +++ b/source/blender/bmesh/intern/bmesh_edgeloop.c @@ -544,9 +544,9 @@ void BM_edgeloop_calc_center(BMesh *UNUSED(bm), BMEdgeLoopStore *el_store) LinkData *node_first = el_store->verts.first; LinkData *node_next = node_first; - float const *v_prev = NODE_AS_CO(node_prev); - float const *v_curr = NODE_AS_CO(node_curr); - float const *v_next = NODE_AS_CO(node_next); + const float const *v_prev = NODE_AS_CO(node_prev); + const float const *v_curr = NODE_AS_CO(node_curr); + const float const *v_next = NODE_AS_CO(node_next); float totw = 0.0f; float w_prev; @@ -582,8 +582,8 @@ void BM_edgeloop_calc_center(BMesh *UNUSED(bm), BMEdgeLoopStore *el_store) bool BM_edgeloop_calc_normal(BMesh *UNUSED(bm), BMEdgeLoopStore *el_store) { LinkData *node_curr = el_store->verts.first; - float const *v_prev = NODE_AS_CO(el_store->verts.last); - float const *v_curr = NODE_AS_CO(node_curr); + const float const *v_prev = NODE_AS_CO(el_store->verts.last); + const float const *v_curr = NODE_AS_CO(node_curr); zero_v3(el_store->no); @@ -619,8 +619,8 @@ bool BM_edgeloop_calc_normal(BMesh *UNUSED(bm), BMEdgeLoopStore *el_store) bool BM_edgeloop_calc_normal_aligned(BMesh *UNUSED(bm), BMEdgeLoopStore *el_store, const float no_align[3]) { LinkData *node_curr = el_store->verts.first; - float const *v_prev = NODE_AS_CO(el_store->verts.last); - float const *v_curr = NODE_AS_CO(node_curr); + const float const *v_prev = NODE_AS_CO(el_store->verts.last); + const float const *v_curr = NODE_AS_CO(node_curr); zero_v3(el_store->no); |