[Bf-blender-cvs] [c11f6ab] master: Add "Create" tab and panel for Metaball Edit Mode

Jonathan Williamson noreply at git.blender.org
Sun Feb 2 19:28:15 CET 2014


Commit: c11f6abc57e8ff1f9d8b89a43ae474f168a44dd2
Author: Jonathan Williamson
Date:   Sun Feb 2 12:27:26 2014 -0600
https://developer.blender.org/rBc11f6abc57e8ff1f9d8b89a43ae474f168a44dd2

Add "Create" tab and panel for Metaball Edit Mode

This makes the Create tab consistent in metaball editmode with other object types.

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

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 2498637..0cc4494 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -630,6 +630,23 @@ class VIEW3D_PT_tools_mballedit(View3DPanel, Panel):
 
         draw_repeat_tools(context, layout)
 
+class VIEW3D_PT_tools_add_mball_edit(View3DPanel, Panel):
+    bl_category = "Create"
+    bl_context = "mball_edit"
+    bl_label = "Add Metaball"
+
+    def draw (self, context):
+        layout = self.layout
+
+        col = layout.column(align=True)
+
+        col.operator("object.metaball_add", text="Ball", icon="META_BALL").type = 'BALL'
+        col.operator("object.metaball_add", text="Capsule", icon="META_CAPSULE").type = 'CAPSULE'
+        col.operator("object.metaball_add", text="Plane", icon="META_PLANE").type = 'PLANE'
+        col.operator("object.metaball_add", text="Ellipsoid", icon="META_ELLIPSOID").type = 'ELLIPSOID'
+        col.operator("object.metaball_add", text="Cube", icon="META_CUBE").type = 'CUBE'
+
+
 # ********** default tools for editmode_lattice ****************




More information about the Bf-blender-cvs mailing list