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-09-27 19:03:18 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-09-27 19:35:42 +0300
commit6a74b7c14b393c769f85e78360ec0e74198199cf (patch)
tree9e5eed6ce58313371848198b108200b798b450f7 /source/blender/makesdna
parent7ae549448eabe633091a0c94257dc6090eda0d64 (diff)
Sculpt: Pose brush origin offset
With the previous behavior, it was impossible to manipulate areas with a lot of complex shapes like fingers, as the pose origin was calculated only with the topology inside the radius. With pose offset, the previous method is used to calculate the direction of the "bone", and an extra offset is added on top of it. This way you can set the pose origin in the correct place in this kind of situations. The pose factor grows to fit the new rotation origin. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D5841
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_brush_types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h
index a1b50e8f125..aec28c0fe75 100644
--- a/source/blender/makesdna/DNA_brush_types.h
+++ b/source/blender/makesdna/DNA_brush_types.h
@@ -321,11 +321,12 @@ typedef struct Brush {
int curve_preset;
int automasking_flags;
- char _pad1[4];
-
int elastic_deform_type;
float elastic_deform_volume_preservation;
+ /* pose */
+ float pose_offset;
+
/* overlay */
int texture_overlay_alpha;
int mask_overlay_alpha;