From 4abe5485273894302d575251e72a1fa7d43f4231 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 2 Jan 2015 19:18:57 +1100 Subject: cleanup: style --- source/blender/blenkernel/intern/paint.c | 2 +- source/blender/blenlib/intern/winstuff_dir.c | 10 +++++----- source/blender/bmesh/operators/bmo_similar.c | 2 +- source/blender/editors/sculpt_paint/paint_image_proj.c | 6 +++--- source/blender/editors/util/ed_util.c | 2 +- source/blender/python/mathutils/mathutils_geometry.c | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenkernel/intern/paint.c b/source/blender/blenkernel/intern/paint.c index 2cd779a120c..58591242e5b 100644 --- a/source/blender/blenkernel/intern/paint.c +++ b/source/blender/blenkernel/intern/paint.c @@ -533,7 +533,7 @@ void paint_calculate_rake_rotation(UnifiedPaintSettings *ups, Brush *brush, cons } } else { - ups->brush_rotation = ups->brush_rotation_sec =0.0f; + ups->brush_rotation = ups->brush_rotation_sec = 0.0f; } } diff --git a/source/blender/blenlib/intern/winstuff_dir.c b/source/blender/blenlib/intern/winstuff_dir.c index 3d669a869f9..b20da9ce959 100644 --- a/source/blender/blenlib/intern/winstuff_dir.c +++ b/source/blender/blenlib/intern/winstuff_dir.c @@ -45,11 +45,11 @@ #include "utfconv.h" /* Note: MinGW (FREE_WINDOWS) has opendir() and _wopendir(), and only the -* latter accepts a path name of wchar_t type. Rather than messing up with -* extra #ifdef's here and there, Blender's own implementations of opendir() -* and related functions are used to properly support paths with non-ASCII -* characters. (kjym3) -*/ + * latter accepts a path name of wchar_t type. Rather than messing up with + * extra #ifdef's here and there, Blender's own implementations of opendir() + * and related functions are used to properly support paths with non-ASCII + * characters. (kjym3) + */ DIR *opendir(const char *path) { diff --git a/source/blender/bmesh/operators/bmo_similar.c b/source/blender/bmesh/operators/bmo_similar.c index 1405d875979..02462e380b4 100644 --- a/source/blender/bmesh/operators/bmo_similar.c +++ b/source/blender/bmesh/operators/bmo_similar.c @@ -247,7 +247,7 @@ void bmo_similar_faces_exec(BMesh *bm, BMOperator *op) break; case SIMFACE_SMOOTH: - if(BM_elem_flag_test(fm, BM_ELEM_SMOOTH) == BM_elem_flag_test(fs, BM_ELEM_SMOOTH)) { + if (BM_elem_flag_test(fm, BM_ELEM_SMOOTH) == BM_elem_flag_test(fs, BM_ELEM_SMOOTH)) { BMO_elem_flag_enable(bm, fm, FACE_MARK); cont = false; } diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 93401d4ec52..12240be1689 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -187,7 +187,7 @@ typedef struct ProjPaintImage { ImagePaintPartialRedraw *partRedrawRect; volatile void **undoRect; /* only used to build undo tiles during painting */ unsigned short **maskRect; /* the mask accumulation must happen on canvas, not on space screen bucket. - * Here we store the mask rectangle */ + * Here we store the mask rectangle */ bool **valid; /* store flag to enforce validation of undo rectangle */ int touch; } ProjPaintImage; @@ -2496,10 +2496,10 @@ static void project_paint_face_init(const ProjPaintState *ps, const int thread_i CLAMP(bounds_px.ymax, 0, ibuf->y); } - /* +#if 0 project_paint_undo_tiles_init(&bounds_px, ps->projImages + image_index, tmpibuf, tile_width, threaded, ps->do_masking); - */ +#endif /* clip face and */ has_isect = 0; diff --git a/source/blender/editors/util/ed_util.c b/source/blender/editors/util/ed_util.c index 86b96968047..32d4f2e5a15 100644 --- a/source/blender/editors/util/ed_util.c +++ b/source/blender/editors/util/ed_util.c @@ -174,7 +174,7 @@ bool ED_editors_flush_edits(const bContext *C, bool for_render) } else { /* Set reorder=false so that saving the file doesn't reorder - * the BMesh's elements */ + * the BMesh's elements */ BKE_sculptsession_bm_to_me(ob, false); } } diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c index 49f1253af95..67e48253726 100644 --- a/source/blender/python/mathutils/mathutils_geometry.c +++ b/source/blender/python/mathutils/mathutils_geometry.c @@ -787,7 +787,7 @@ static PyObject *M_Geometry_intersect_point_tri(PyObject *UNUSED(self), PyObject if (!PyArg_ParseTuple( args, "OOOO:intersect_point_tri", - &py_pt, UNPACK3_EX(&, py_tri,))) + &py_pt, UNPACK3_EX(&, py_tri, ))) { return NULL; } @@ -833,7 +833,7 @@ static PyObject *M_Geometry_intersect_point_tri_2d(PyObject *UNUSED(self), PyObj if (!PyArg_ParseTuple( args, "OOOO:intersect_point_tri_2d", - &py_pt, UNPACK3_EX(&, py_tri,))) + &py_pt, UNPACK3_EX(&, py_tri, ))) { return NULL; } @@ -878,7 +878,7 @@ static PyObject *M_Geometry_intersect_point_quad_2d(PyObject *UNUSED(self), PyOb if (!PyArg_ParseTuple( args, "OOOOO:intersect_point_quad_2d", - &py_pt, UNPACK4_EX(&, py_quad,))) + &py_pt, UNPACK4_EX(&, py_quad, ))) { return NULL; } -- cgit v1.2.3