diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-02-11 21:43:36 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-02-11 21:44:14 +0300 |
commit | 0ab7e321585f909a4fd3cc55221bf3d3827989e9 (patch) | |
tree | 5568149508acb6cffeb89c74b57f29c4d523dc45 /source/blender/blenloader/intern/versioning_280.c | |
parent | 015d5eda884dfb10f8982f9b0f8d69c9ea540349 (diff) |
Pose Brush: Option to disable the IK anchor point
The IK chain was using an anchor point by default as it makes sense for
posing, but for creating curved shapes it is useful to be able to
disable it.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D6584
Diffstat (limited to 'source/blender/blenloader/intern/versioning_280.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index cb12efd0ec2..b570947739a 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -4440,5 +4440,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) br->pose_ik_segments = 1; } } + + /* Pose brush keep anchor point. */ + for (Brush *br = bmain->brushes.first; br; br = br->id.next) { + if (br->sculpt_tool == SCULPT_TOOL_POSE) { + br->flag2 |= BRUSH_POSE_IK_ANCHORED; + } + } } } |