Skip to content
Snippets Groups Projects
Commit 45e8032f authored by Campbell Barton's avatar Campbell Barton
Browse files

fix error enabling mocap tools [#28933]

parent 855de6d1
No related branches found
No related tags found
No related merge requests found
...@@ -50,9 +50,10 @@ else: ...@@ -50,9 +50,10 @@ else:
PointerProperty, PointerProperty,
StringProperty, StringProperty,
) )
from . import mocap_constraints from . import (mocap_constraints,
from . import retarget retarget,
from . import mocap_tools mocap_tools,
)
# MocapConstraint class # MocapConstraint class
...@@ -229,7 +230,8 @@ def toggleIKBone(self, context): ...@@ -229,7 +230,8 @@ def toggleIKBone(self, context):
class MocapMapping(bpy.types.PropertyGroup): class MocapMapping(bpy.types.PropertyGroup):
name = StringProperty() name = StringProperty()
# Disabling for now [#28933] - campbell
'''
def updateIKRetarget(): def updateIKRetarget():
# ensures that Blender constraints and IK properties are in sync # ensures that Blender constraints and IK properties are in sync
# currently runs when module is loaded, should run when scene is loaded # currently runs when module is loaded, should run when scene is loaded
...@@ -244,9 +246,8 @@ def updateIKRetarget(): ...@@ -244,9 +246,8 @@ def updateIKRetarget():
else: else:
pose_bone.IKRetarget = False pose_bone.IKRetarget = False
updateIKRetarget() updateIKRetarget()
'''
def hasIKConstraint(pose_bone): def hasIKConstraint(pose_bone):
#utility function / predicate, returns True if given bone has IK constraint #utility function / predicate, returns True if given bone has IK constraint
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment