diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-21 13:05:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-21 13:28:07 +0300 |
commit | f758ee50e6d96e5342a9971bd76d9ff0352aafa3 (patch) | |
tree | 17dd061e81f09a0966984ceaf13818c908b76109 /source/blender/makesdna/DNA_brush_types.h | |
parent | adcef2bd3686a887fba8f08192751ab6736b9782 (diff) |
Sculpt: Add rake option to snake-hook
This allows for dragging out shapes that rotate to follow the cursor motion.
Values over 1 can be set for 'interesting' artistic effects.
Diffstat (limited to 'source/blender/makesdna/DNA_brush_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index 7ec86459f0c..3dca087c7fa 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -69,6 +69,8 @@ typedef struct Brush { char icon_filepath[1024]; /* 1024 = FILE_MAX */ float normal_weight; + float rake_factor; /* rake actual data (not texture), used for sculpt */ + int pad; short blend; /* blend mode */ short ob_mode; /* & with ob->mode to see if the brush is compatible, use for display only. */ @@ -273,6 +275,10 @@ typedef enum BrushSculptTool { SCULPT_TOOL_SNAKE_HOOK \ ) +#define SCULPT_TOOL_HAS_RAKE(t) ELEM(t, \ + SCULPT_TOOL_SNAKE_HOOK \ + ) + #define SCULPT_TOOL_HAS_DYNTOPO(t) (ELEM(t, \ /* These brushes, as currently coded, cannot support dynamic topology */ \ SCULPT_TOOL_GRAB, \ |