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:
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_stroke.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_stroke.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c
index 4ee31c8ebe2..859d8d76f15 100644
--- a/source/blender/editors/sculpt_paint/paint_stroke.c
+++ b/source/blender/editors/sculpt_paint/paint_stroke.c
@@ -180,10 +180,12 @@ static void paint_brush_update(bContext *C, Brush *brush, PaintMode mode,
{
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)) {