diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-10-05 20:00:32 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-10-05 20:19:58 +0300 |
commit | 25bd9feadb36053bdef938b52f77caf0a34016ad (patch) | |
tree | 02bcc662aa524ad8c544dab14f18329d0ff61727 /source/blender/makesdna/DNA_armature_types.h | |
parent | 6723e173a52769602846ed485f6f3341077eaa02 (diff) |
Add a new B-Bone Custom Handle type that uses the handle bone direction.
Both original handle types are based on location, and Absolute uses it
in a weird way: the Start handle uses the head, while End uses the tail.
This makes controlling the shape of the B-Bone via control bone rotation
really non-intuitive, especially if trying to add a single control for
the tangent in the middle of a B-Bone chain.
To remedy this, add a new custom handle type that uses the orientation
of the control bone, while completely ignoring location. It is even
possible to control both ends of one B-Bone with the same handle bone,
resulting in an S shape.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3769
Diffstat (limited to 'source/blender/makesdna/DNA_armature_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_armature_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_armature_types.h b/source/blender/makesdna/DNA_armature_types.h index 141ad7c3ce0..3e68ddcb96b 100644 --- a/source/blender/makesdna/DNA_armature_types.h +++ b/source/blender/makesdna/DNA_armature_types.h @@ -221,6 +221,7 @@ typedef enum eBone_BBoneHandleType { BBONE_HANDLE_AUTO = 0, /* Default mode based on parents & children. */ BBONE_HANDLE_ABSOLUTE, /* Custom handle in absolute position mode. */ BBONE_HANDLE_RELATIVE, /* Custom handle in relative position mode. */ + BBONE_HANDLE_TANGENT, /* Custom handle in tangent mode (use direction, not location). */ } eBone_BBoneHandleType; #define MAXBONENAME 64 |