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>2012-03-04 00:19:11 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-04 00:19:11 +0400
commit95670e03a01d30cda5a0f685974f28790be6809d (patch)
treee6d5756cbe51edb083cda2fceff087bda35c361a /source/blender/blenkernel/intern/brush.c
parenta2c182e9233333fc3b8ff40d352113ec95e7e30c (diff)
style cleanup / comment formatting for bli/bke/bmesh
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c20
1 files changed, 9 insertions, 11 deletions
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;