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:
authorAntony Riakiotakis <kalast@gmail.com>2014-08-06 22:03:16 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-08-06 22:03:16 +0400
commitef68faa2f991d257107c1ab7a4e9c6dac9180e95 (patch)
tree6902f2c249daa2d44851164b46f427357592e704 /release
parentdd5acaaa6c3fde6d7a0b161faa54696045780e7b (diff)
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.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_object.py11
1 files changed, 10 insertions, 1 deletions
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 @@
# <pep8 compliant>
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()