diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-09 17:58:09 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-09 18:02:04 +0300 |
commit | 2b2739724e6502d2798d22b516a4ffb61596c556 (patch) | |
tree | 7f1451d16dd9f8b8844d4bb11410b00f0a880c67 /source/blender/makesdna/DNA_brush_types.h | |
parent | 5fe83ffb3a53e9b67c77fcc01d4928c816978e03 (diff) |
Sculpt: Topology automasking
The sculpt automasking feature assigns a factor to each vertex before starting the stroke. This can be used for isolating disconnected meshes, masking cavities, mesh boundary edges or creating topological falloffs.
This commit implements automasking in all brushes and topology automasking without topology falloff.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D5645
Diffstat (limited to 'source/blender/makesdna/DNA_brush_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index c5d741fd25a..1906259f3e9 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -206,6 +206,10 @@ typedef enum eBrushElasticDeformType { BRUSH_ELASTIC_DEFORM_TWIST = 4, } eBrushElasticDeformType; +typedef enum eAutomasking_flag { + BRUSH_AUTOMASKING_TOPOLOGY = (1 << 0), +} eAutomasking_flag; + typedef struct Brush { ID id; @@ -312,6 +316,9 @@ typedef struct Brush { float texture_sample_bias; int curve_preset; + int automasking_flags; + + char _pad1[4]; int elastic_deform_type; float elastic_deform_compressibility; |