From 153eea5f23e2f0060d89a701ddd9b48085fc6070 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Mon, 25 Mar 2013 01:42:58 +0000 Subject: [PATCH] Fix #34730, set special brush rotation to zero if brush is not rake or anchored. --- source/blender/editors/sculpt_paint/paint_stroke.c | 6 ++++-- 1 file 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)) {