diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-15 07:11:48 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-15 07:11:48 +0400 |
commit | ea610e655cd8b8f9fb97f0a9a4fc5fd46418bd9e (patch) | |
tree | c1a3582f1167f778bf5845e64e127c0560b0c42e /source/blender/editors/space_view3d/drawobject.c | |
parent | 3cf39fc72a36bab1c5b82ae96cffe7dd01ce7260 (diff) |
Style cleanup: C & pep8
Diffstat (limited to 'source/blender/editors/space_view3d/drawobject.c')
-rw-r--r-- | source/blender/editors/space_view3d/drawobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c index 24e00dd49e2..df34f1f6f65 100644 --- a/source/blender/editors/space_view3d/drawobject.c +++ b/source/blender/editors/space_view3d/drawobject.c @@ -2414,8 +2414,8 @@ static void draw_dm_loop_normals(BMEditMesh *em, Scene *scene, Object *ob, Deriv if (lnors) { drawDMNormal_userData data; - MLoop *mloops = dm->getLoopArray(dm); - MVert *mverts = dm->getVertArray(dm); + const MLoop *mloops = dm->getLoopArray(dm); + const MVert *mverts = dm->getVertArray(dm); int i, totloops = dm->getNumLoops(dm); data.bm = em->bm; @@ -2426,7 +2426,7 @@ static void draw_dm_loop_normals(BMEditMesh *em, Scene *scene, Object *ob, Deriv glBegin(GL_LINES); for (i = 0; i < totloops; i++, mloops++, lnors++) { float no[3]; - float *co = mverts[mloops->v].co; + const float *co = mverts[mloops->v].co; if (!data.uniform_scale) { mul_v3_m3v3(no, data.tmat, (float *)lnors); @@ -2434,7 +2434,7 @@ static void draw_dm_loop_normals(BMEditMesh *em, Scene *scene, Object *ob, Deriv mul_m3_v3(data.imat, no); } else { - copy_v3_v3(no,(float *)lnors); + copy_v3_v3(no, (float *)lnors); } mul_v3_fl(no, data.normalsize); add_v3_v3(no, co); |