Feature Request #28449: Pose Library poses can be renamed from
authorJoshua Leung <aligorith@gmail.com>
Thu, 1 Sep 2011 10:56:16 +0000 (10:56 +0000)
committerJoshua Leung <aligorith@gmail.com>
Thu, 1 Sep 2011 10:56:16 +0000 (10:56 +0000)
Properties Editor

release/scripts/startup/bl_ui/properties_data_armature.py

index e17064178b8645aa744f5016c8ad7db29be5ca34..463ba84470f9445635d90bc41e11d4a8fce58b38 100644 (file)
@@ -185,9 +185,13 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, Panel):
         layout.template_ID(ob, "pose_library", new="poselib.new", unlink="poselib.unlink")
 
         if poselib:
+            
+            # list of poses in pose library 
             row = layout.row()
             row.template_list(poselib, "pose_markers", poselib.pose_markers, "active_index", rows=5)
-
+            
+            # column of operators for active pose
+            # - goes beside list
             col = row.column(align=True)
             col.active = (poselib.library is None)
 
@@ -202,8 +206,12 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, Panel):
             if pose_marker_active is not None:
                 col.operator("poselib.pose_remove", icon='ZOOMOUT', text="").pose = pose_marker_active.name
                 col.operator("poselib.apply_pose", icon='ZOOM_SELECTED', text="").pose_index = poselib.pose_markers.active_index
-
-            layout.operator("poselib.action_sanitise")
+            
+            col.operator("poselib.action_sanitise", icon='HELP', text="") # XXX: put in menu?
+            
+            # properties for active marker
+            if pose_marker_active is not None:
+                layout.prop(pose_marker_active, "name")
 
 
 # TODO: this panel will soon be depreceated too