From 95670e03a01d30cda5a0f685974f28790be6809d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 3 Mar 2012 20:19:11 +0000 Subject: style cleanup / comment formatting for bli/bke/bmesh --- source/blender/blenkernel/intern/brush.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'source/blender/blenkernel/intern/brush.c') diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 9e706c48430..c178bf6f0a7 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -201,7 +201,7 @@ void make_local_brush(Brush *brush) if(brush->clone.image) { /* special case: ima always local immediately. Clone image should only - have one user anyway. */ + * have one user anyway. */ id_clear_lib_data(bmain, &brush->clone.image->id); extern_local_brush(brush); } @@ -331,10 +331,8 @@ void brush_debug_print_state(Brush *br) void brush_reset_sculpt(Brush *br) { /* enable this to see any non-default - settings used by a brush: - - brush_debug_print_state(br); - */ + * settings used by a brush: */ + // brush_debug_print_state(br); brush_set_defaults(br); brush_curve_preset(br, CURVE_PRESET_SMOOTH); @@ -857,8 +855,8 @@ static void brush_painter_do_partial(BrushPainter *painter, ImBuf *oldtexibuf, dotexold = (oldtexibuf != NULL); /* not sure if it's actually needed or it's a mistake in coords/sizes - calculation in brush_painter_fixed_tex_partial_update(), but without this - limitation memory gets corrupted at fast strokes with quite big spacing (sergey) */ + * calculation in brush_painter_fixed_tex_partial_update(), but without this + * limitation memory gets corrupted at fast strokes with quite big spacing (sergey) */ w = MIN2(w, ibuf->x); h = MIN2(h, ibuf->y); @@ -1049,7 +1047,7 @@ void brush_jitter_pos(const Scene *scene, Brush *brush, const float pos[2], floa int use_jitter= brush->jitter != 0; /* jitter-ed brush gives weird and unpredictable result for this - kinds of stroke, so manyally disable jitter usage (sergey) */ + * kinds of stroke, so manyally disable jitter usage (sergey) */ use_jitter &= (brush->flag & (BRUSH_RESTORE_MESH|BRUSH_ANCHORED)) == 0; if (use_jitter) { @@ -1139,7 +1137,7 @@ int brush_painter_paint(BrushPainter *painter, BrushFunc func, const float pos[2 const int radius= brush_size(scene, brush); /* compute brush spacing adapted to brush radius, spacing may depend - on pressure, so update it */ + * on pressure, so update it */ brush_apply_pressure(painter, brush, painter->lastpressure); spacing= MAX2(1.0f, radius)*brush->spacing*0.01f; @@ -1188,8 +1186,8 @@ int brush_painter_paint(BrushPainter *painter, BrushFunc func, const float pos[2 } /* do airbrush paint ops, based on the number of paint ops left over - from regular painting. this is a temporary solution until we have - accurate time stamps for mouse move events */ + * from regular painting. this is a temporary solution until we have + * accurate time stamps for mouse move events */ if (brush->flag & BRUSH_AIRBRUSH) { double curtime= time; double painttime= brush->rate*totpaintops; -- cgit v1.2.3