[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39842] trunk/blender/release/scripts/ startup/bl_ui/properties_data_armature.py: Feature Request #28449: Pose Library poses can be renamed from
Joshua Leung
aligorith at gmail.com
Thu Sep 1 12:56:17 CEST 2011
Revision: 39842
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39842
Author: aligorith
Date: 2011-09-01 10:56:16 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
Feature Request #28449: Pose Library poses can be renamed from
Properties Editor
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py 2011-09-01 09:47:21 UTC (rev 39841)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_armature.py 2011-09-01 10:56:16 UTC (rev 39842)
@@ -185,9 +185,13 @@
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,10 +206,14 @@
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
+
+ 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")
- layout.operator("poselib.action_sanitise")
-
# TODO: this panel will soon be depreceated too
class DATA_PT_ghost(ArmatureButtonsPanel, Panel):
bl_label = "Ghost"
More information about the Bf-blender-cvs
mailing list