add missing break statement from recent brush code refactor,

selecting texture paint brush would never run brush_generic_tool_set()
This commit is contained in:
Campbell Barton 2012-03-15 19:24:16 +00:00
parent 4022c52cfa
commit e24d221e2a
1 changed files with 1 additions and 0 deletions

View File

@ -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;