diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-19 20:19:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-19 20:19:08 +0400 |
commit | 9ac0a714bee5df2153e0a73bb55962139ba18eb2 (patch) | |
tree | 029104d14b7e942dd616bf8443e09d0461ac6350 /mocap/mocap_constraints.py | |
parent | 5e44117da5a35882e7f3919f4c48c234acebe045 (diff) |
indentation edits and copy pyrimid from contrib (where I had made some edits), removed so this wont happen again.
Diffstat (limited to 'mocap/mocap_constraints.py')
-rw-r--r-- | mocap/mocap_constraints.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mocap/mocap_constraints.py b/mocap/mocap_constraints.py index a8d88c3a..d9f41ea1 100644 --- a/mocap/mocap_constraints.py +++ b/mocap/mocap_constraints.py @@ -363,11 +363,11 @@ def bakeAllConstraints(obj, s_frame, e_frame, bones): ik = retarget.hasIKConstraint(end_bone) cons_obj = getConsObj(end_bone) if ik: - #If it's an auto generated IK: - if ik.chain_count == 0: - selectedBones += bones # Chain len 0, bake everything - else: - selectedBones += [end_bone] + end_bone.parent_recursive[:ik.chain_count - 1] # Bake the chain + #If it's an auto generated IK: + if ik.chain_count == 0: + selectedBones += bones # Chain len 0, bake everything + else: + selectedBones += [end_bone] + end_bone.parent_recursive[:ik.chain_count - 1] # Bake the chain else: #It's either an FK bone which we should just bake #OR a user created IK target bone |