diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-01 20:19:30 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-07-02 19:20:47 +0300 |
commit | c5ec8d91bd125f8ed1d0a964e36e601da993f5d2 (patch) | |
tree | 2177303ecaf3e347f5849f7a850fa92ef60ee0c6 /source/blender/editors/sculpt_paint/sculpt_intern.h | |
parent | 85980743b058e287f1d6400a64dcc60f87fad000 (diff) |
Sculpt: Mask By Color
This tool generates masks based on the sculpt vertex colors by clicking
on the model, similar to automatic selection tools in image editing
software.
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D8157
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_intern.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h index 317e156760e..c7e07721eb7 100644 --- a/source/blender/editors/sculpt_paint/sculpt_intern.h +++ b/source/blender/editors/sculpt_paint/sculpt_intern.h @@ -633,6 +633,16 @@ typedef struct SculptThreadedTaskData { float dirty_mask_max; bool dirty_mask_dirty_only; + /* Mask By Color Tool */ + + float mask_by_color_threshold; + bool mask_by_color_invert; + bool mask_by_color_preserve_mask; + + /* Index of the vertex that is going to be used as a reference for the colors. */ + int mask_by_color_vertex; + float *mask_by_color_floodfill; + int face_set; int filter_undo_type; |