[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33621] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: bugfix [#23395] Mirror + Front Faces Only + Grab = Scaling oddity

Campbell Barton ideasman42 at gmail.com
Mon Dec 13 00:02:19 CET 2010


Revision: 33621
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33621
Author:   campbellbarton
Date:     2010-12-13 00:02:19 +0100 (Mon, 13 Dec 2010)

Log Message:
-----------
bugfix [#23395] Mirror + Front Faces Only + Grab = Scaling oddity
sculpt normal was used un-initialized, this also affected snake/hook brush.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/sculpt.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2010-12-12 21:50:55 UTC (rev 33620)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2010-12-12 23:02:19 UTC (rev 33621)
@@ -1331,7 +1331,7 @@
 	int n;
 	float len;
 
-	if (brush->normal_weight > 0)
+	if (brush->normal_weight > 0 || brush->flag & BRUSH_FRONTFACE)
 		calc_sculpt_normal(sd, ss, an, nodes, totnode);
 
 	copy_v3_v3(grab_delta, ss->cache->grab_delta_symmetry);
@@ -1423,7 +1423,7 @@
 	int n;
 	float len;
 
-	if (brush->normal_weight > 0)
+	if (brush->normal_weight > 0 || brush->flag & BRUSH_FRONTFACE)
 		calc_sculpt_normal(sd, ss, an, nodes, totnode);
 
 	copy_v3_v3(grab_delta, ss->cache->grab_delta_symmetry);





More information about the Bf-blender-cvs mailing list