[Bf-blender-cvs] [1139e51] master: Fix: "Whole Character" Keying Set should not include Location on bones with "connected" joint

Joshua Leung noreply at git.blender.org
Wed May 18 06:42:45 CEST 2016


Commit: 1139e51be6249da1e238aa226d1be736d196291a
Author: Joshua Leung
Date:   Wed May 18 04:09:07 2016 +1200
Branches: master
https://developer.blender.org/rB1139e51be6249da1e238aa226d1be736d196291a

Fix: "Whole Character" Keying Set should not include Location on bones with "connected" joint

===================================================================

M	release/scripts/startup/keyingsets_builtins.py

===================================================================

diff --git a/release/scripts/startup/keyingsets_builtins.py b/release/scripts/startup/keyingsets_builtins.py
index 195eaf8..3e245b0 100644
--- a/release/scripts/startup/keyingsets_builtins.py
+++ b/release/scripts/startup/keyingsets_builtins.py
@@ -395,7 +395,8 @@ class BUILTIN_KSI_WholeCharacter(KeyingSetInfo):
     # generator - all unlocked bone transforms + custom properties
     def generate(ksi, context, ks, bone):
         # loc, rot, scale - only include unlocked ones
-        ksi.doLoc(ks, bone)
+        if not bone.bone.use_connect:
+            ksi.doLoc(ks, bone)
 
         if bone.rotation_mode in {'QUATERNION', 'AXIS_ANGLE'}:
             ksi.doRot4d(ks, bone)




More information about the Bf-blender-cvs mailing list