[Bf-blender-cvs] [a22a2c6] master: Adding Relations category to 3D View Toolbar.

Jonathan Williamson noreply at git.blender.org
Fri Jan 3 22:28:54 CET 2014


Commit: a22a2c6fd7b07ae96d090e294008208f3ed68fff
Author: Jonathan Williamson
Date:   Thu Jan 2 21:27:15 2014 -0600
https://developer.blender.org/rBa22a2c6fd7b07ae96d090e294008208f3ed68fff

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.

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 769334e..98e4deb 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"




More information about the Bf-blender-cvs mailing list