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-15 07:11:48 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-04-15 07:11:48 +0400
commitea610e655cd8b8f9fb97f0a9a4fc5fd46418bd9e (patch)
treec1a3582f1167f778bf5845e64e127c0560b0c42e /source/blender
parent3cf39fc72a36bab1c5b82ae96cffe7dd01ce7260 (diff)
Style cleanup: C & pep8
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/sculpt_paint/paint_stroke.c2
-rw-r--r--source/blender/editors/space_view3d/drawobject.c8
-rw-r--r--source/blender/makesrna/intern/rna_mesh.c2
3 files changed, 6 insertions, 6 deletions
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]);
}
}