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:
authorJonathan Williamson <jonathan@cgcookie.com>2014-01-03 07:27:15 +0400
committerJonathan Williamson <jonathan@cgcookie.com>2014-01-04 01:28:18 +0400
commita22a2c6fd7b07ae96d090e294008208f3ed68fff (patch)
treeeb50dd7d6757704b95aeab1601fd034fa846641b
parentc36070299fb1380248115e547131b12d8954a564 (diff)
Adding Relations category to 3D View Toolbar.
This creates the tab for relations in the toolbar. This tab includes those operators that relate to objects relationships with other objects and data.
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 769334ef53d..98e4deb1369 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -221,6 +221,37 @@ class VIEW3D_PT_tools_basic(View3DPanel, Panel):
row.operator("object.shade_flat", text="Flat")
+class VIEW3D_PT_tools_relations(View3DPanel, Panel):
+ bl_category = "Relations"
+ bl_context = "objectmode"
+ bl_label = "Relations"
+
+ def draw(self, context):
+ layout = self.layout
+
+ col = layout.column(align=True)
+
+ col.label(text="Objects")
+ col.operator("group.create")
+ col.operator("group.objects_add_active")
+ col.operator("group.objects_remove")
+ row = col.row(align=True)
+ row.operator("object.parent_set", text="Set Parent")
+ row.operator("object.parent_clear", text="Clear Parent")
+
+ col.separator()
+
+ col.label(text="Object Data")
+ col.operator("object.make_links_data")
+ col.operator("object.make_single_user")
+
+ col.separator()
+
+ col.label(text="Linked Objects:")
+ col.operator("object.make_local")
+ col.operator("object.proxy_make")
+
+
class VIEW3D_PT_tools_animation(View3DPanel, Panel):
bl_category = "Animation"
bl_context = "objectmode"