diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-21 23:57:50 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-21 23:59:07 +0300 |
commit | 878d191baee6b6a7997cf21d980f39ea97a0a33b (patch) | |
tree | b4106e231b219acb884e10006056f18d4a7b3e6d /source/blender/makesdna/DNA_brush_types.h | |
parent | 46b126a2c8402a527cd611b47d04ee7de29a9775 (diff) |
Sculpt: Add extra deform types to Slide
This adds extra deform modes to the slide mode of the Topology
Slide/Relax brush (both slide and smear are almost identical).
This is useful to move topology to a specific area to add more localized
details
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D8349
Diffstat (limited to 'source/blender/makesdna/DNA_brush_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index 76a172d6fda..e2102abb285 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -349,6 +349,12 @@ typedef enum eBrushSmearDeformType { BRUSH_SMEAR_DEFORM_EXPAND = 2, } eBrushSmearDeformType; +typedef enum eBrushSlideDeformType { + BRUSH_SLIDE_DEFORM_DRAG = 0, + BRUSH_SLIDE_DEFORM_PINCH = 1, + BRUSH_SLIDE_DEFORM_EXPAND = 2, +} eBrushSlideDeformType; + /* Gpencilsettings.Vertex_mode */ typedef enum eGp_Vertex_Mode { /* Affect to Stroke only. */ @@ -494,7 +500,7 @@ typedef struct Brush { /** Source for fill tool color gradient application. */ char gradient_fill_mode; - char _pad0[5]; + char _pad0[1]; /** Projection shape (sphere, circle). */ char falloff_shape; @@ -578,6 +584,9 @@ typedef struct Brush { /* smear */ int smear_deform_type; + /* slide/relax */ + int slide_deform_type; + /* overlay */ int texture_overlay_alpha; int mask_overlay_alpha; |