diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-03-25 05:42:58 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-03-25 05:42:58 +0400 |
commit | 153eea5f23e2f0060d89a701ddd9b48085fc6070 (patch) | |
tree | 50eb1ea568f93be745b92adee40bf2c101eb3274 /source/blender | |
parent | 5e7372a7ce936cd2e348c6ff1704a39837d46907 (diff) |
Fix #34730, set special brush rotation to zero if brush is not rake or
anchored.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 6 |
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)) { |