diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-09 16:13:52 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-06-09 16:13:52 +0300 |
commit | 9a83e112bea30dfe8f3417df2638d674e84fa7f9 (patch) | |
tree | 31229e11ab9d370b9b35bd132b5663fb98d71744 /source/blender/editors/sculpt_paint | |
parent | 3092e1031d2194e9d6fcc8f157a6e0fcb5d1e45a (diff) |
Fix T45002: sculpt show brush toggle no longer working.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_cursor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c index 30ab00a72c2..c88153c9836 100644 --- a/source/blender/editors/sculpt_paint/paint_cursor.c +++ b/source/blender/editors/sculpt_paint/paint_cursor.c @@ -958,10 +958,12 @@ static void paint_cursor_on_hit(UnifiedPaintSettings *ups, Brush *brush, ViewCon static bool ommit_cursor_drawing(Paint *paint, PaintMode mode, Brush *brush) { if (paint->flags & PAINT_SHOW_BRUSH) { - if (ELEM(mode, PAINT_TEXTURE_2D, PAINT_TEXTURE_PROJECTIVE) && brush->imagepaint_tool == PAINT_TOOL_FILL) + if (ELEM(mode, PAINT_TEXTURE_2D, PAINT_TEXTURE_PROJECTIVE) && brush->imagepaint_tool == PAINT_TOOL_FILL) { return true; + } + return false; } - return false; + return true; } static void paint_draw_cursor(bContext *C, int x, int y, void *UNUSED(unused)) |