Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-04-26 18:23:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-26 18:25:16 +0400
commit88a0fe5f1bc52ebd918be1f63af57cf0f9d594d1 (patch)
treedae0ebda56ceba3d2ed714ec13e0b8930ea333e8 /source/blender/bmesh/intern/bmesh_polygon.c
parentc67bd49e5607cc3db7446d4b12e1346fc9b2c83a (diff)
Code cleanup: use 'const' for arrays (bmesh)
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_polygon.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_polygon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/bmesh/intern/bmesh_polygon.c b/source/blender/bmesh/intern/bmesh_polygon.c
index a2cfdc41281..06c32d3ead2 100644
--- a/source/blender/bmesh/intern/bmesh_polygon.c
+++ b/source/blender/bmesh/intern/bmesh_polygon.c
@@ -78,8 +78,8 @@ static void bm_face_calc_poly_normal(const BMFace *f, float n[3])
{
BMLoop *l_first = BM_FACE_FIRST_LOOP(f);
BMLoop *l_iter = l_first;
- float const *v_prev = l_first->prev->v->co;
- float const *v_curr = l_first->v->co;
+ const float const *v_prev = l_first->prev->v->co;
+ const float const *v_curr = l_first->v->co;
zero_v3(n);
@@ -109,8 +109,8 @@ static void bm_face_calc_poly_normal_vertex_cos(BMFace *f, float r_no[3],
{
BMLoop *l_first = BM_FACE_FIRST_LOOP(f);
BMLoop *l_iter = l_first;
- float const *v_prev = vertexCos[BM_elem_index_get(l_first->prev->v)];
- float const *v_curr = vertexCos[BM_elem_index_get(l_first->v)];
+ const float const *v_prev = vertexCos[BM_elem_index_get(l_first->prev->v)];
+ const float const *v_curr = vertexCos[BM_elem_index_get(l_first->v)];
zero_v3(r_no);