diff options
author | Brendon Murphy <meta.androcto1@gmail.com> | 2012-05-03 06:06:22 +0400 |
---|---|---|
committer | Brendon Murphy <meta.androcto1@gmail.com> | 2012-05-03 06:06:22 +0400 |
commit | b3f79b0aa1286944bf1b586e3866baa751254e6b (patch) | |
tree | 8712a8aadcc18fcc3a89eee786c52017aa26e14e /add_mesh_extra_objects/__init__.py | |
parent | 1e7a51e7f0d4704e7f2e19f0a989becdec95f506 (diff) |
extra objects update
new clean menu,
added add_mesh_extra_objects/add_mesh_honeycomb.py by Kayo Phoenix
added add_mesh_extra_objects/add_mesh_torusknot.py by Anthony D'Agostino
Diffstat (limited to 'add_mesh_extra_objects/__init__.py')
-rw-r--r-- | add_mesh_extra_objects/__init__.py | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py index feca7612..fcb02a56 100644 --- a/add_mesh_extra_objects/__init__.py +++ b/add_mesh_extra_objects/__init__.py @@ -17,6 +17,7 @@ # ##### END GPL LICENSE BLOCK ##### # Contributed to by # Pontiac, Fourmadmen, varkenvarken, tuga3d, meta-androcto, metalliandy, dreampainter & cotejrp1# +# Kayo Phoenix, Anthony D'Agostino# bl_info = { "name": "Extra Objects", @@ -43,6 +44,8 @@ if "bpy" in locals(): imp.reload(add_mesh_polysphere) imp.reload(add_mesh_supertoroid) imp.reload(add_mesh_pyramid) + imp.reload(add_mesh_torusknot) + imp.reload(add_mesh_honeycomb) else: from . import add_mesh_extra_objects from . import add_mesh_twisted_torus @@ -52,6 +55,8 @@ else: from . import add_mesh_polysphere from . import add_mesh_supertoroid from . import add_mesh_pyramid + from . import add_mesh_torusknot + from . import add_mesh_honeycomb import bpy @@ -68,8 +73,7 @@ class INFO_MT_mesh_extras_add(bpy.types.Menu): layout.menu("INFO_MT_mesh_math_add", text="Math Function") layout.menu("INFO_MT_mesh_basic_add", text="Basic Objects") layout.menu("INFO_MT_mesh_torus_add", text="Torus Objects") - layout.operator("mesh.primitive_steppyramid_add", - text="Step Pyramid") + layout.menu("INFO_MT_mesh_misc_add", text="Misc Objects") class INFO_MT_mesh_gemstones_add(bpy.types.Menu): # Define the "Gemstones" menu @@ -141,7 +145,21 @@ class INFO_MT_mesh_torus_add(bpy.types.Menu): text="Twisted Torus") layout.operator("mesh.primitive_supertoroid_add", text="Supertoroid") + layout.operator("mesh.primitive_torusknot_add", + text="Torus Knot") +class INFO_MT_mesh_misc_add(bpy.types.Menu): + # Define the "Simple Objects" menu + bl_idname = "INFO_MT_mesh_misc_add" + bl_label = "Misc Objects" + + def draw(self, context): + layout = self.layout + layout.operator_context = 'INVOKE_REGION_WIN' + layout.operator("mesh.primitive_steppyramid_add", + text="Step Pyramid") + layout.operator("mesh.honeycomb_add", + text="Honeycomb") # Register all operators and panels # Define "Extras" menu |