- split objet group add/link into 2 operators

- link now brings up a search box so when there are 100's of groups its less annoying.
- utility functions for id-enums so only local objects can be displayed in a search list (used for group_link)
- renamed operator properties from typle to scene, group, action etc.
This commit is contained in:
2010-05-05 15:41:38 +00:00
parent 575dce788a
commit 12cf8ac1d6
11 changed files with 91 additions and 77 deletions

View File

@@ -155,13 +155,11 @@ class OBJECT_PT_groups(ObjectButtonsPanel):
ob = context.object
wide_ui = context.region.width > narrowui
if wide_ui:
split = layout.split()
split.operator_menu_enum("object.group_add", "group")
split.label()
else:
layout.operator_menu_enum("object.group_add", "group")
split = layout.split(percentage=0.8, align=True)
split.operator("object.group_link", text="Link to Group")
split.operator("object.group_add", text="", icon='ZOOMIN')
# XXX, this is bad practice, yes, I wrote it :( - campbell
index = 0
value = str(tuple(context.scene.cursor_location))
for group in bpy.data.groups: