[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34607] trunk/blender/source/blender/ editors/sculpt_paint/sculpt.c: Fix #25884: Crazy behaviour of the rotate brush

Sergey Sharybin g.ulairi at gmail.com
Tue Feb 1 16:51:41 CET 2011


Revision: 34607
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34607
Author:   nazgul
Date:     2011-02-01 15:51:40 +0000 (Tue, 01 Feb 2011)
Log Message:
-----------
Fix #25884: Crazy behaviour of the rotate brush

Rotation brush used to be crazy because it depends on normal of area
under brush, which is used as axis to rotate vertexes around and
this normal used to change during stroke.

Calculate normal from original mesh state for rotation tool too.

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	2011-02-01 15:02:25 UTC (rev 34606)
+++ trunk/blender/source/blender/editors/sculpt_paint/sculpt.c	2011-02-01 15:51:40 UTC (rev 34607)
@@ -2911,7 +2911,7 @@
 		cache->original = 1;
 	}
 
-	if(ELEM7(brush->sculpt_tool, SCULPT_TOOL_DRAW,  SCULPT_TOOL_CREASE, SCULPT_TOOL_BLOB, SCULPT_TOOL_LAYER, SCULPT_TOOL_INFLATE, SCULPT_TOOL_CLAY, SCULPT_TOOL_CLAY_TUBES))
+	if(ELEM8(brush->sculpt_tool, SCULPT_TOOL_DRAW,  SCULPT_TOOL_CREASE, SCULPT_TOOL_BLOB, SCULPT_TOOL_LAYER, SCULPT_TOOL_INFLATE, SCULPT_TOOL_CLAY, SCULPT_TOOL_CLAY_TUBES, SCULPT_TOOL_ROTATE))
 		if(!(brush->flag & BRUSH_ACCUMULATE))
 			cache->original = 1;
 




More information about the Bf-blender-cvs mailing list