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>2020-01-07 18:46:56 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-01-07 18:57:54 +0300
commitfdf89acc8634ecba4dfe66e20ff595c0c24ffdee (patch)
tree0c0f6398468259cca6e0f08ee5fca4079e3aca53 /source/blender/blenloader
parentbd766f8f0608d04c473544274b8dd9dcc00ec39a (diff)
Sculpt: Pose Brush with Inverse Kinematics
This commits introduces the pose_ik_segments brush property in the Pose Brush. When increasing the IK segments count, the brush generates more segments and weights associations following the topology of the mesh. When moving the brush, these segments are transformed using an IK solver and they are used to deform the mesh. When pressing Ctrl, the brush controls the segments' roll rotation instead of using the IK solver. The brush falloff controls how much rotation is propagated from the first to the last segment in the chain. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D6389
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c7
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 bf53d6f216b..ee4e62f19d1 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -4323,5 +4323,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
br->add_col[3] = 0.9f;
br->sub_col[3] = 0.9f;
}
+
+ /* Pose brush IK segments. */
+ if (!DNA_struct_elem_find(fd->filesdna, "Brush", "int", "pose_ik_segments")) {
+ for (Brush *br = bmain->brushes.first; br; br = br->id.next) {
+ br->pose_ik_segments = 1;
+ }
+ }
}
}