From ea610e655cd8b8f9fb97f0a9a4fc5fd46418bd9e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 15 Apr 2014 13:11:48 +1000 Subject: Style cleanup: C & pep8 --- source/blender/editors/sculpt_paint/paint_stroke.c | 2 +- source/blender/editors/space_view3d/drawobject.c | 8 ++++---- source/blender/makesrna/intern/rna_mesh.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender') diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index d3b6d8cdd1a..7b9121446f5 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -169,7 +169,7 @@ static void paint_brush_update(bContext *C, Brush *brush, PaintMode mode, * brush coord/pressure/etc. * It's more an events design issue, which doesn't split coordinate/pressure/angle * changing events. We should avoid this after events system re-design */ - if(!stroke->brush_init) { + if (!stroke->brush_init) { copy_v2_v2(stroke->initial_mouse, mouse); copy_v2_v2(ups->last_rake, mouse); copy_v2_v2(ups->tex_mouse, mouse); 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); diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index 99c35bdcff2..42f316ee208 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -424,7 +424,7 @@ static void rna_MeshTessFace_split_normals_get(PointerRNA *ptr, float *values) while (i--) zero_v3(&values[i * 3]); } else { - while (i--) normal_short_to_float_v3(&values[i * 3], (const short*)(*vec)[i]); + while (i--) normal_short_to_float_v3(&values[i * 3], (const short *)(*vec)[i]); } } -- cgit v1.2.3