From 6a74b7c14b393c769f85e78360ec0e74198199cf Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Fri, 27 Sep 2019 18:03:18 +0200 Subject: 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 --- source/blender/makesdna/DNA_brush_types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/makesdna') 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; -- cgit v1.2.3