Add "Create" tab and panel for Metaball Edit Mode
authorJonathan Williamson <jonathan@cgcookie.com>
Sun, 2 Feb 2014 18:27:26 +0000 (12:27 -0600)
committerJonathan Williamson <jonathan@cgcookie.com>
Sun, 2 Feb 2014 18:27:26 +0000 (12:27 -0600)
This makes the Create tab consistent in metaball editmode with other object types.

release/scripts/startup/bl_ui/space_view3d_toolbar.py

index 2498637ad6899b97ea05243310306f185cfb3219..0cc4494e594653e40d7fee3db9c38e918549c53b 100644 (file)
@@ -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 ****************