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():
else:
pose_bone.IKRetarget = False
updateIKRetarget()
updateIKRetarget()
def hasIKConstraint(pose_bone):
#utility function / predicate, returns True if given bone has IK constraint
ik = [constraint for constraint in pose_bone.constraints if constraint.type == "IK"]
......@@ -257,20 +256,20 @@ class MocapPanel(bpy.types.Panel):
bl_context = "object"
def draw(self, context):
layout = self.layout()
layout = self.layout
layout.label("Preprocessing:")
row = layout.row(align=True)
row.operator("mocap.denoise", text='Clean noise')
row.operator("mocap.rotate_fix", text='Fix BVH Axis Orientation')
row.operator("mocap.scale_fix", text='Auto scale Performer')
row = layout.row(align=True)
row.operator("mocap.looper", text='Loop animation')
row.operator("mocap.limitdof", text='Constrain Rig')
row.operator("mocap.removelimitdof", text='Unconstrain Rig')
layout.label("Retargeting:")
enduser_obj = bpy.context.active_object
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.
Finish editing this message first!
Please register or to comment