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:
authorTon Roosendaal <ton@blender.org>2007-11-14 19:50:51 +0300
committerTon Roosendaal <ton@blender.org>2007-11-14 19:50:51 +0300
commitc3bbd543c708dd42fc124172939cabde7601fe9d (patch)
treea56b91b5c1f65c75d2d6f2946b9f5ebdfe7f201f /source/blender/src/transform_conversions.c
parentfa8032ce3180ec0fc4346c8d08e427d1c1b1cfdc (diff)
Small feature added to new "show bone paths around cfra":
- after a insert-key (autokey mode) it updates paths.
Diffstat (limited to 'source/blender/src/transform_conversions.c')
-rw-r--r--source/blender/src/transform_conversions.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/src/transform_conversions.c b/source/blender/src/transform_conversions.c
index 7de16146bca..60ff52ec747 100644
--- a/source/blender/src/transform_conversions.c
+++ b/source/blender/src/transform_conversions.c
@@ -2765,6 +2765,7 @@ void autokeyframe_ob_cb_func(Object *ob, int tmode)
*/
void autokeyframe_pose_cb_func(Object *ob, int tmode, short targetless_ik)
{
+ bArmature *arm= ob->data;
bAction *act;
bPose *pose;
bPoseChannel *pchan;
@@ -2838,6 +2839,16 @@ void autokeyframe_pose_cb_func(Object *ob, int tmode, short targetless_ik)
remake_action_ipos (act);
allqueue(REDRAWMARKER, 0);
+
+ /* locking can be disabled */
+ ob->pose->flag &= ~(POSE_DO_UNLOCK|POSE_LOCKED);
+
+ /* do the bone paths */
+ if (arm->pathflag & ARM_PATH_ACFRA) {
+ pose_clear_paths(ob);
+ pose_calculate_path(ob);
+ }
+
}
else {
/* tag channels that should have unkeyed data */