[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55561] trunk/blender/source/blender/ editors/sculpt_paint/paint_stroke.c: Fix #34730, set special brush rotation to zero if brush is not rake or
Antony Riakiotakis
kalast at gmail.com
Mon Mar 25 02:42:58 CET 2013
Revision: 55561
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55561
Author: psy-fi
Date: 2013-03-25 01:42:58 +0000 (Mon, 25 Mar 2013)
Log Message:
-----------
Fix #34730, set special brush rotation to zero if brush is not rake or
anchored.
Modified Paths:
--------------
trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c
Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c 2013-03-25 01:25:46 UTC (rev 55560)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_stroke.c 2013-03-25 01:42:58 UTC (rev 55561)
@@ -180,10 +180,12 @@
{
if (((brush->mtex.brush_map_mode == MTEX_MAP_MODE_VIEW) ||
(brush->mtex.brush_map_mode == MTEX_MAP_MODE_RANDOM)) &&
- (brush->flag & BRUSH_RANDOM_ROTATION) &&
!(brush->flag & BRUSH_RAKE))
{
- ups->brush_rotation = 2.0f * (float)M_PI * BLI_frand();
+ if (brush->flag & BRUSH_RANDOM_ROTATION)
+ ups->brush_rotation = 2.0f * (float)M_PI * BLI_frand();
+ else
+ ups->brush_rotation = 0.0f;
}
if ((brush->mtex.brush_map_mode == MTEX_MAP_MODE_RANDOM)) {
More information about the Bf-blender-cvs
mailing list