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:
authorPablo Dobarro <pablodp606@gmail.com>2020-07-01 20:19:30 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-07-02 19:20:47 +0300
commitc5ec8d91bd125f8ed1d0a964e36e601da993f5d2 (patch)
tree2177303ecaf3e347f5849f7a850fa92ef60ee0c6 /source/blender/editors/sculpt_paint/sculpt_intern.h
parent85980743b058e287f1d6400a64dcc60f87fad000 (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.h10
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;