From a5afca907245460e8359f5ee6c4008825fa382c6 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Mon, 29 Aug 2011 23:32:51 +0000
Subject: [PATCH] fix for error in the UI panels

---
 mocap/__init__.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/mocap/__init__.py b/mocap/__init__.py
index e3dc302ac..b56bb342f 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]
-- 
GitLab