Small feature added to new "show bone paths around cfra":
[blender.git] / source / blender / src / transform_conversions.c
index 7de16146bca7055622929f602bc29f7f749e4330..60ff52ec747baa97ec4786c7babe4e3a8613da18 100644 (file)
@@ -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)
 {
  */
 void autokeyframe_pose_cb_func(Object *ob, int tmode, short targetless_ik)
 {
+       bArmature *arm= ob->data;
        bAction *act;
        bPose   *pose;
        bPoseChannel *pchan;
        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);
                
                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 */
        }
        else {
                /* tag channels that should have unkeyed data */