From e24d221e2a3f2b420121472a0f181fe6e44bacf0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 15 Mar 2012 19:24:16 +0000 Subject: [PATCH] add missing break statement from recent brush code refactor, selecting texture paint brush would never run brush_generic_tool_set() --- source/blender/editors/sculpt_paint/paint_ops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index c5f808d99b2..7880fafca9e 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -282,6 +282,7 @@ static int brush_select_exec(bContext *C, wmOperator *op) paint= &toolsettings->imapaint.paint; tool_offset= offsetof(Brush, imagepaint_tool); tool= RNA_enum_get(op->ptr, "texture_paint_tool"); + break; default: /* invalid paint mode */ return OPERATOR_CANCELLED;