diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-12-10 06:27:53 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-12-10 06:28:16 +0400 |
commit | 07d09267964b70893d81e2d2fd6958ad6075e16c (patch) | |
tree | c1ddcf42fc0df64c1d9059a831ca72bb1a97bd8a /source/blender/editors/sculpt_paint/paint_cursor.c | |
parent | a7ac6481ef72d8968445146f348d6d10aa70163e (diff) |
Style changes to refactor commit.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_cursor.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 2dc6babdfa6..8f4454eb2da 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -830,11 +830,8 @@ static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused)) /* don't calculate rake angles while a stroke is active because the rake variables are global and * we may get interference with the stroke itself. For line strokes, such interference is visible */ - if (!ups->stroke_active) { - if (brush->flag & BRUSH_RAKE) - /* here, translation contains the mouse coordinates. */ - paint_calculate_rake_rotation(ups, translation); - } + if (!ups->stroke_active && (brush->flag & BRUSH_RAKE)) + paint_calculate_rake_rotation(ups, translation); /* draw overlay */ paint_draw_alpha_overlay(ups, brush, &vc, x, y, zoomx, mode); |