diff options
author | Antonioya <blendergit@gmail.com> | 2019-07-23 10:46:29 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-07-23 10:46:29 +0300 |
commit | 2204bfcf9e1c3a38e60830bd97775dd72158f4d6 (patch) | |
tree | 4f9c827389a23a431f8771b4ca02f410860c0242 /source/blender/blenkernel/intern/brush.c | |
parent | f64db794ee690f05905ace0a66d81d2e75549b90 (diff) | |
parent | 34ad6da4a06ef46cd19945f61cc5f968538546a8 (diff) |
Merge branch 'master' into temp-gpencil-drw-engine
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r-- | source/blender/blenkernel/intern/brush.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c index 78d965564e6..ec9a774a65c 100644 --- a/source/blender/blenkernel/intern/brush.c +++ b/source/blender/blenkernel/intern/brush.c @@ -73,8 +73,8 @@ static void brush_defaults(Brush *brush) brush->topology_rake_factor = 0.0f; brush->crease_pinch_factor = 0.5f; brush->sculpt_plane = SCULPT_DISP_DIR_AREA; - brush->plane_offset = - 0.0f; /* how far above or below the plane that is found by averaging the faces */ + /* How far above or below the plane that is found by averaging the faces. */ + brush->plane_offset = 0.0f; brush->plane_trim = 0.5f; brush->clone.alpha = 0.5f; brush->normal_weight = 0.0f; @@ -82,7 +82,8 @@ static void brush_defaults(Brush *brush) brush->flag |= BRUSH_ALPHA_PRESSURE; /* BRUSH PAINT TOOL SETTINGS */ - brush->rgb[0] = 1.0f; /* default rgb color of the brush when painting - white */ + /* Default rgb color of the brush when painting - white. */ + brush->rgb[0] = 1.0f; brush->rgb[1] = 1.0f; brush->rgb[2] = 1.0f; @@ -90,13 +91,14 @@ static void brush_defaults(Brush *brush) /* BRUSH STROKE SETTINGS */ brush->flag |= (BRUSH_SPACE | BRUSH_SPACE_ATTEN); - brush->spacing = - 10; /* how far each brush dot should be spaced as a percentage of brush diameter */ + /* How far each brush dot should be spaced as a percentage of brush diameter. */ + brush->spacing = 10; brush->smooth_stroke_radius = 75; brush->smooth_stroke_factor = 0.9f; - brush->rate = 0.1f; /* time delay between dots of paint or sculpting when doing airbrush mode */ + /* Time delay between dots of paint or sculpting when doing airbrush mode. */ + brush->rate = 0.1f; brush->jitter = 0.0f; |