Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-05-11 00:35:32 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-05-11 00:35:32 +0400
commitc8465eb42c5f853c5706a06229537c31f9dea391 (patch)
tree4019c0c34dadd973fe53946ed94c14ff2dbc4d07 /source/blender/makesdna
parent450bb3afcb572da3a43b68480d859eefbea7dd18 (diff)
Add mask brush for sculpt mode.
The mask brush currently has two modes, 'draw' and 'smooth'.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_brush_types.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h
index 4b84b819a1c..d3b7381cdb5 100644
--- a/source/blender/makesdna/DNA_brush_types.h
+++ b/source/blender/makesdna/DNA_brush_types.h
@@ -86,7 +86,7 @@ typedef struct Brush {
char sculpt_tool; /* active sculpt tool */
char vertexpaint_tool; /* active vertex/weight paint blend mode (poorly named) */
char imagepaint_tool; /* active image paint tool */
- char pad;
+ char mask_tool; /* enum BrushMaskTool, only used if sculpt_tool is SCULPT_TOOL_MASK */
float autosmooth_factor;
@@ -162,7 +162,8 @@ typedef enum BrushSculptTool {
SCULPT_TOOL_CREASE = 16,
SCULPT_TOOL_BLOB = 17,
- SCULPT_TOOL_CLAY_STRIPS = 18
+ SCULPT_TOOL_CLAY_STRIPS = 18,
+ SCULPT_TOOL_MASK = 19
} BrushSculptTool;
/* ImagePaintSettings.tool */
@@ -190,6 +191,10 @@ enum {
PAINT_BLEND_DARKEN
};
+typedef enum {
+ BRUSH_MASK_DRAW,
+ BRUSH_MASK_SMOOTH
+} BrushMaskTool;
#define MAX_BRUSH_PIXEL_RADIUS 200