forked from bartvdbraak/blender
style cleanup
This commit is contained in:
parent
9096b3a14e
commit
0ac194687e
@ -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
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
#ifndef __BKE_OCEAN_H__
|
||||
#define __BKE_OCEAN_H__
|
||||
|
||||
/** \file BLI_ocean.h
|
||||
/** \file BKE_ocean.h
|
||||
* \ingroup bli
|
||||
*/
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user