Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-08-30 03:32:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-30 03:32:51 +0400
commita5afca907245460e8359f5ee6c4008825fa382c6 (patch)
treeb8a60eb46d5221f4b67e00a7cfb766aa72c38e59
parentcc39f08aacf2ba5cd1aa4fdf0de98fd9d965e104 (diff)
fix for error in the UI panels
-rw-r--r--mocap/__init__.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/mocap/__init__.py b/mocap/__init__.py
index e3dc302a..b56bb342 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]