diff options
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_ops.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_ops.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index 191ae1da343..be545600e6e 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -695,14 +695,12 @@ static Brush *brush_tool_toggle(Main *bmain, Paint *paint, Brush *brush_orig, co return br; } - else if (brush_orig->toggle_brush) { + if (brush_orig->toggle_brush) { /* if current brush is using the desired tool, try to toggle * back to the previously selected brush. */ return brush_orig->toggle_brush; } - else { - return NULL; - } + return NULL; } static bool brush_generic_tool_set(bContext *C, @@ -751,9 +749,7 @@ static bool brush_generic_tool_set(bContext *C, return true; } - else { - return false; - } + return false; } static const ePaintMode brush_select_paint_modes[] = { |