[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2288] trunk/py/scripts/addons/mocap/ __init__.py: fix for error in the UI panels

Campbell Barton ideasman42 at gmail.com
Tue Aug 30 01:32:52 CEST 2011


Revision: 2288
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2288
Author:   campbellbarton
Date:     2011-08-29 23:32:51 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
fix for error in the UI panels

Modified Paths:
--------------
    trunk/py/scripts/addons/mocap/__init__.py

Modified: trunk/py/scripts/addons/mocap/__init__.py
===================================================================
--- trunk/py/scripts/addons/mocap/__init__.py	2011-08-29 09:16:31 UTC (rev 2287)
+++ trunk/py/scripts/addons/mocap/__init__.py	2011-08-29 23:32:51 UTC (rev 2288)
@@ -237,9 +237,8 @@
                 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 @@
     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]



More information about the Bf-extensions-cvs mailing list