diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-04-20 05:35:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-20 06:23:47 +0300 |
commit | 436004b6b17a99b878f6ac9ba79ed3c00c6d39c0 (patch) | |
tree | e90796e2e5d0b6e1b128967d845ef63e3a8c85f8 /source/blender/makesdna | |
parent | 07a7d77ec1a27d64784412eddfe21a6fbd874e1b (diff) |
Sculpt: clay-strips was missing accumulate button
Correct & de-duplicate check for accumulate.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index a711f2ae100..f83caea66a2 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -255,6 +255,36 @@ typedef enum BrushSculptTool { SCULPT_TOOL_MASK = 19 } BrushSculptTool; +/** When #BRUSH_ACCUMULATE is used */ +#define SCULPT_TOOL_HAS_ACCUMULATE(t) ELEM(t, \ + SCULPT_TOOL_DRAW, \ + SCULPT_TOOL_CREASE, \ + SCULPT_TOOL_BLOB, \ + SCULPT_TOOL_LAYER, \ + SCULPT_TOOL_INFLATE, \ + SCULPT_TOOL_CLAY, \ + SCULPT_TOOL_CLAY_STRIPS, \ + SCULPT_TOOL_ROTATE, \ + SCULPT_TOOL_FLATTEN \ + ) + +#define SCULPT_TOOL_HAS_NORMAL_WEIGHT(t) ELEM(t, \ + SCULPT_TOOL_GRAB, \ + SCULPT_TOOL_SNAKE_HOOK \ + ) + +#define SCULPT_TOOL_HAS_DYNTOPO(t) (ELEM(t, \ + /* These brushes, as currently coded, cannot support dynamic topology */ \ + SCULPT_TOOL_GRAB, \ + SCULPT_TOOL_ROTATE, \ + SCULPT_TOOL_THUMB, \ + SCULPT_TOOL_LAYER, \ + \ + /* These brushes could handle dynamic topology, but user feedback indicates it's better not to */ \ + SCULPT_TOOL_SMOOTH, \ + SCULPT_TOOL_MASK \ + ) == 0) + /* ImagePaintSettings.tool */ typedef enum BrushImagePaintTool { PAINT_TOOL_DRAW = 0, |