diff options
author | Jonathan Williamson <jonathan@cgcookie.com> | 2014-02-02 22:27:26 +0400 |
---|---|---|
committer | Jonathan Williamson <jonathan@cgcookie.com> | 2014-02-02 22:27:26 +0400 |
commit | c11f6abc57e8ff1f9d8b89a43ae474f168a44dd2 (patch) | |
tree | 800c9b0968cd0816b3233e8ef0d7431edca6b351 /release/scripts | |
parent | 6739d9b07204ca9c89cb7c386022b41da43f371a (diff) |
Add "Create" tab and panel for Metaball Edit Mode
This makes the Create tab consistent in metaball editmode with other object types.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 17 |
1 files changed, 17 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 2498637ad68..0cc4494e594 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 **************** |