diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-01 20:32:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-01 20:37:29 +0300 |
commit | 72666ae3e7b7854429cb297d767833fd41bac812 (patch) | |
tree | bec8eddc6735e864e6eec7dadf76516532c5739d /source/blender/blenloader/intern/versioning_defaults.c | |
parent | 710e4847a0d2c6f18262b928faae9288bd41ad4e (diff) |
Brush: default the strength to 1.0
This applies to all paint modes except sculpt and grease pencil brushes.
When painting color or weight it's best to paint the color
the user has selected, without them having to make multiple strokes.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 24c9a7c4147..c9fb8b6990b 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -428,6 +428,13 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template) for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) { brush->blur_kernel_radius = 2; + + /* Use full strength for all non-sculpt brushes, + * when painting we want to use full color/weight always. + * + * Note that sculpt is an exception, + * it's values are overwritten by #BKE_brush_sculpt_reset below. */ + brush->alpha = 1.0; } { @@ -475,7 +482,8 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template) /* Use the same tool icon color in the brush cursor */ for (brush = bmain->brushes.first; brush; brush = brush->id.next) { - if (brush->sculpt_tool) { + if (brush->ob_mode & OB_MODE_SCULPT) { + BLI_assert(brush->sculpt_tool != 0); BKE_brush_sculpt_reset(brush); } } |