diff --git a/mocap/__init__.py b/mocap/__init__.py index e3dc302ace452d8ccca44d3cd8c50782ee535bc2..b56bb342feec33c54b7ff0f5666437f1196e2484 100644 --- a/mocap/__init__.py +++ b/mocap/__init__.py @@ -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]