diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-02-22 21:23:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-02-22 21:27:13 +0300 |
commit | 1e98435c856f34bb6123f8fff336ef0b956a7544 (patch) | |
tree | 3ca171ab343a818b32a0b818650dd09fa7f8223f /source | |
parent | 36e732c89f93660f016f52ab9abcefa50dcd182d (diff) |
Sculpt: Enable original-normal for grab brush
Without this, grabbing with normal weight will continually select new normals
based on where you move the cursor,
causing the normal location to flicker in a way which isn't controllable in any useful way.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 6eabd7a0514..fb4aa53f8ef 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -239,6 +239,12 @@ void BLO_update_defaults_startup_blend(Main *bmain) if (br) { BKE_libblock_rename(bmain, &br->id, "Rotate"); } + + /* use original normal for grab brush (otherwise flickers with normal weighting). */ + br = (Brush *)BKE_libblock_find_name_ex(bmain, ID_BR, "Grab"); + if (br) { + br->flag |= BRUSH_ORIGINAL_NORMAL; + } } } |