From 0ac194687e3e872fe0f9df1fc95652c733d500af Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 18 Sep 2013 00:07:17 +0000 Subject: [PATCH] style cleanup --- release/scripts/startup/bl_operators/node.py | 4 ++-- source/blender/blenkernel/BKE_ocean.h | 2 +- source/blender/blenkernel/intern/pbvh_intern.h | 2 +- source/blender/bmesh/intern/bmesh_operators.c | 2 +- source/blender/editors/sculpt_paint/sculpt.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py index 6627e814499..9b629c3f976 100644 --- a/release/scripts/startup/bl_operators/node.py +++ b/release/scripts/startup/bl_operators/node.py @@ -67,7 +67,7 @@ class NodeAddOperator(): # convert mouse position to the View2D for later node placement if context.region.type == 'WINDOW': # convert mouse position to the View2D for later node placement - space.cursor_location_from_region(event.mouse_region_x, event.mouse_region_y) + space.cursor_location_from_region(event.mouse_region_x, event.mouse_region_y) else: space.cursor_location = tree.view_center @@ -124,7 +124,7 @@ class NodeAddOperator(): if self.use_transform and ('FINISHED' in result): # removes the node again if transform is cancelled - bpy.ops.transform.translate('INVOKE_DEFAULT', remove_on_cancel = True) + bpy.ops.transform.translate('INVOKE_DEFAULT', remove_on_cancel=True) return result diff --git a/source/blender/blenkernel/BKE_ocean.h b/source/blender/blenkernel/BKE_ocean.h index 3facdfc5901..b750d8b283a 100644 --- a/source/blender/blenkernel/BKE_ocean.h +++ b/source/blender/blenkernel/BKE_ocean.h @@ -23,7 +23,7 @@ #ifndef __BKE_OCEAN_H__ #define __BKE_OCEAN_H__ -/** \file BLI_ocean.h +/** \file BKE_ocean.h * \ingroup bli */ diff --git a/source/blender/blenkernel/intern/pbvh_intern.h b/source/blender/blenkernel/intern/pbvh_intern.h index 0acf101a581..89bfbc252a8 100644 --- a/source/blender/blenkernel/intern/pbvh_intern.h +++ b/source/blender/blenkernel/intern/pbvh_intern.h @@ -21,7 +21,7 @@ #ifndef __PBVH_INTERN_H__ #define __PBVH_INTERN_H__ -/** \file blender/blenkernel/intern/pbvh_intern.c +/** \file blender/blenkernel/intern/pbvh_intern.h * \ingroup bli */ diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c index 9551c55959e..284ff3e759c 100644 --- a/source/blender/bmesh/intern/bmesh_operators.c +++ b/source/blender/bmesh/intern/bmesh_operators.c @@ -1826,7 +1826,7 @@ bool BMO_op_vinitf(BMesh *bm, BMOperator *op, const int flag, const char *_fmt, break; default: fprintf(stderr, - "%s: unrecognized bmop format char: %c, %d in '%s'\n", + "%s: unrecognized bmop format char: '%c', %d in '%s'\n", __func__, *fmt, (int)(fmt - ofmt), ofmt); break; } diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index d07f447b2fa..a557afcdf3d 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -2496,7 +2496,7 @@ static void calc_area_normal_and_flatten_center(Sculpt *sd, Object *ob, /* for flatten center */ if (count != 0) mul_v3_fl(fc, 1.0f / count); - else if (count_flipped !=0 ) + else if (count_flipped != 0) mul_v3_v3fl(fc, fc_flip, 1.0f / count_flipped); else zero_v3(fc);