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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2012-10-15 06:01:39 +0400
committerJoshua Leung <aligorith@gmail.com>2012-10-15 06:01:39 +0400
commit977aaeb95c2946f2c8d83dd6a15979424a869eda (patch)
tree166314be4d5f76235366d844f01a824a893fe9f3 /release
parent18bf8993f756f1dfcc83b185811a0f0c1f827d75 (diff)
Streamlinining Bone Groups menu (Ctrl G)
The Ctrl-G menu for managing Bone Groups has always been a bit clunky, especially when compared to the Hooks menu (Ctrl-H). This was because the old menu was more data-orientated (Bone Group Management, Membership to these groups) whereas this new arrangement should be a bit more task-orientated (Add to new group, Add to active group, Remove from all groups, Remove active group).
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index e7ad1c5ff37..f0ee965aa54 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -1530,13 +1530,20 @@ class VIEW3D_MT_pose_group(Menu):
def draw(self, context):
layout = self.layout
- layout.operator("pose.group_add")
- layout.operator("pose.group_remove")
+
+ pose = context.active_object.pose
- layout.separator()
+ layout.operator_context = 'EXEC_AREA'
+ layout.operator("pose.group_assign", text="Assign to New Group").type = 0
+ if pose.bone_groups:
+ active_group = pose.bone_groups.active_index + 1
+ layout.operator("pose.group_assign", text="Assign to Group").type = active_group
+
+ layout.separator()
- layout.operator("pose.group_assign")
- layout.operator("pose.group_unassign")
+ #layout.operator_context = 'INVOKE_AREA'
+ layout.operator("pose.group_unassign")
+ layout.operator("pose.group_remove")
class VIEW3D_MT_pose_ik(Menu):