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>2019-11-24 23:15:48 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-11-27 18:55:13 +0300
commite85ab2cdc2a6905f4d2eb4a2acdc6db8e20fbeec (patch)
tree7729aec2d67abd8c346db1d04870237842a3b9e8 /source/blender/editors/sculpt_paint/sculpt_intern.h
parentc9e7d8030f55907e759650f75412d5e58cfce9c7 (diff)
Fix T71868: Clay Strips brush collapsed geometry
We are now modifying the relation between pressure and radius using custom functions to improve the brushes, but dyntopo was not prepared for this. This fix sends the unmodified radius to dyntopo so it modifies the geometry correctly. Reviewed By: jbakker Maniphest Tasks: T71868 Differential Revision: https://developer.blender.org/D6299
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 0b25ab31ce0..324ca250c86 100644
--- a/source/blender/editors/sculpt_paint/sculpt_intern.h
+++ b/source/blender/editors/sculpt_paint/sculpt_intern.h
@@ -318,6 +318,10 @@ typedef struct StrokeCache {
float true_last_location[3];
float location[3];
float last_location[3];
+
+ /* This radius variable is not affected by pressure curves */
+ float dyntopo_radius;
+
bool is_last_valid;
bool pen_flip;