diff options
author | Benjy Cook <benjycook@hotmail.com> | 2011-08-05 12:44:16 +0400 |
---|---|---|
committer | Benjy Cook <benjycook@hotmail.com> | 2011-08-05 12:44:16 +0400 |
commit | 9a9330d88c83b4c7ea76cd46a1fecd0c8e4e349e (patch) | |
tree | 1fc07013221e4ac698f538738c9de4a5b39a45fd /release/scripts/modules | |
parent | 63c7bacc7b56dcca559d88a79190933c98017f36 (diff) |
Post Retarget fixes - added an Update Constraints button, that recalculates all fixes. Useful for when the user makes some external change to the animation
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/mocap_constraints.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/modules/mocap_constraints.py b/release/scripts/modules/mocap_constraints.py index 8fd42d17392..75afbe62231 100644 --- a/release/scripts/modules/mocap_constraints.py +++ b/release/scripts/modules/mocap_constraints.py @@ -419,3 +419,10 @@ def unbakeConstraints(context): if ik_con: ik_con.mute = False m_constraint.active = True + + +def updateConstraints(obj, context): + fixes = obj.data.mocap_constraints + for fix in fixes: + fix.active = False + fix.active = True |