From b3f79b0aa1286944bf1b586e3866baa751254e6b Mon Sep 17 00:00:00 2001 From: Brendon Murphy Date: Thu, 3 May 2012 02:06:22 +0000 Subject: 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 --- add_mesh_extra_objects/__init__.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'add_mesh_extra_objects/__init__.py') 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 -- cgit v1.2.3