Fix #34730, set special brush rotation to zero if brush is not rake or

anchored.
This commit is contained in:
Antony Riakiotakis 2013-03-25 01:42:58 +00:00
parent 5e7372a7ce
commit 153eea5f23

@ -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))
{
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)) {