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-02-02 22:11:51 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-02-19 20:08:37 +0300
commitee5c13c45ccac38c20fe5e428f522d546262f1b3 (patch)
tree29d4140e10da7fdce2e24abe7dbba0ba3999191a /source/blender/editors/sculpt_paint/sculpt_intern.h
parente77e6ba3089e9f88377151bfec0fbb27552024c2 (diff)
Sculpt: Pinch only in the direction perpendicular to the stroke
By pinching this way, we can fix some artifacts when sculpting following the topology direction. It does not make much difference with dyntopo/ remesher, but I think this should improve the quality of the brush when working with Multires. Reviewed By: JulienKaspar, jbakker Differential Revision: https://developer.blender.org/D6587
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_intern.h')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_intern.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_intern.h b/source/blender/editors/sculpt_paint/sculpt_intern.h
index 53c2c0ce51f..8302e119ddb 100644
--- a/source/blender/editors/sculpt_paint/sculpt_intern.h
+++ b/source/blender/editors/sculpt_paint/sculpt_intern.h
@@ -202,6 +202,10 @@ typedef struct SculptThreadedTaskData {
float (*mat)[4];
float (*vertCos)[3];
+ /* X and Z vectors aligned to the stroke direction for operations where perpendicular vectors to
+ * the stroke direction are needed. */
+ float (*stroke_xz)[3];
+
int filter_type;
float filter_strength;