[Bf-blender-cvs] [1e98435] master: Sculpt: Enable original-normal for grab brush
Campbell Barton
noreply at git.blender.org
Mon Feb 22 19:34:57 CET 2016
Commit: 1e98435c856f34bb6123f8fff336ef0b956a7544
Author: Campbell Barton
Date: Tue Feb 23 05:23:47 2016 +1100
Branches: master
https://developer.blender.org/rB1e98435c856f34bb6123f8fff336ef0b956a7544
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.
===================================================================
M source/blender/blenloader/intern/versioning_defaults.c
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 6eabd7a..fb4aa53 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;
+ }
}
}
More information about the Bf-blender-cvs
mailing list