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>2019-07-02 15:17:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-02 15:17:22 +0300
commit163996b68129f3a34db73c6a6a1e81ec8f4a81e4 (patch)
treea78662ee2ff3ce658f5a29ff241944ac7bd2953f /source/blender/blenkernel/intern/brush.c
parentb708917d94afa3a77be5e571b1c36a364d2ec6b5 (diff)
Cleanup: move comments onto own lines to avoid breaking lines
Diffstat (limited to 'source/blender/blenkernel/intern/brush.c')
-rw-r--r--source/blender/blenkernel/intern/brush.c14
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;