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

fix for error in the UI panels

parent cc39f08a
No related branches found
No related tags found
No related merge requests found
...@@ -237,9 +237,8 @@ def updateIKRetarget(): ...@@ -237,9 +237,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
ik = [constraint for constraint in pose_bone.constraints if constraint.type == "IK"] ik = [constraint for constraint in pose_bone.constraints if constraint.type == "IK"]
...@@ -257,20 +256,20 @@ class MocapPanel(bpy.types.Panel): ...@@ -257,20 +256,20 @@ class MocapPanel(bpy.types.Panel):
bl_context = "object" bl_context = "object"
def draw(self, context): def draw(self, context):
layout = self.layout() layout = self.layout
layout.label("Preprocessing:") layout.label("Preprocessing:")
row = layout.row(align=True) row = layout.row(align=True)
row.operator("mocap.denoise", text='Clean noise') row.operator("mocap.denoise", text='Clean noise')
row.operator("mocap.rotate_fix", text='Fix BVH Axis Orientation') row.operator("mocap.rotate_fix", text='Fix BVH Axis Orientation')
row.operator("mocap.scale_fix", text='Auto scale Performer') row.operator("mocap.scale_fix", text='Auto scale Performer')
row = layout.row(align=True) row = layout.row(align=True)
row.operator("mocap.looper", text='Loop animation') row.operator("mocap.looper", text='Loop animation')
row.operator("mocap.limitdof", text='Constrain Rig') row.operator("mocap.limitdof", text='Constrain Rig')
row.operator("mocap.removelimitdof", text='Unconstrain Rig') row.operator("mocap.removelimitdof", text='Unconstrain Rig')
layout.label("Retargeting:") layout.label("Retargeting:")
enduser_obj = bpy.context.active_object enduser_obj = bpy.context.active_object
performer_obj = [obj for obj in bpy.context.selected_objects if obj != enduser_obj] performer_obj = [obj for obj in bpy.context.selected_objects if obj != enduser_obj]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment