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>2016-02-22 21:23:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-02-22 21:27:13 +0300
commit1e98435c856f34bb6123f8fff336ef0b956a7544 (patch)
tree3ca171ab343a818b32a0b818650dd09fa7f8223f /source/blender/blenloader/intern/versioning_defaults.c
parent36e732c89f93660f016f52ab9abcefa50dcd182d (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/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c6
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;
+ }
}
}