From ef68faa2f991d257107c1ab7a4e9c6dac9180e95 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 6 Aug 2014 20:03:16 +0200 Subject: Fix T41343, hard to remove group from objects. Added a small menu with a few helper oerators next to each group panel: * Remove group from all objects * Select objects in group More could be added possibly in the future. Thanks to Campbell for the advice here. --- release/scripts/startup/bl_ui/properties_object.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_object.py b/release/scripts/startup/bl_ui/properties_object.py index 9d958892c73..b3551c52192 100644 --- a/release/scripts/startup/bl_ui/properties_object.py +++ b/release/scripts/startup/bl_ui/properties_object.py @@ -18,7 +18,7 @@ # import bpy -from bpy.types import Panel +from bpy.types import Panel, Menu from rna_prop_ui import PropertyPanel @@ -151,6 +151,14 @@ class OBJECT_PT_relations(ObjectButtonsPanel, Panel): sub.prop_search(ob, "parent_bone", parent.data, "bones", text="") sub.active = (parent is not None) +class GROUP_MT_specials(Menu): + bl_label = "Group Specials" + + def draw(self, context): + layout = self.layout + + layout.operator("object.group_unlink", icon='X') + layout.operator("object.grouped_select") class OBJECT_PT_groups(ObjectButtonsPanel, Panel): bl_label = "Groups" @@ -183,6 +191,7 @@ class OBJECT_PT_groups(ObjectButtonsPanel, Panel): row = col.box().row() row.prop(group, "name", text="") row.operator("object.group_remove", text="", icon='X', emboss=False) + row.menu("GROUP_MT_specials", icon='DOWNARROW_HLT', text="") split = col.box().split() -- cgit v1.2.3