Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendon Murphy <meta.androcto1@gmail.com>2012-05-02 19:04:40 +0400
committerBrendon Murphy <meta.androcto1@gmail.com>2012-05-02 19:04:40 +0400
commit1e7a51e7f0d4704e7f2e19f0a989becdec95f506 (patch)
tree41dd9ebc1882f1415d0bd21983daf5ad9a0ee7a1 /add_mesh_extra_objects
parent69d1c71093bd17b0bce305bef1b17eadf3307eec (diff)
clean up menu
Diffstat (limited to 'add_mesh_extra_objects')
-rw-r--r--add_mesh_extra_objects/__init__.py24
1 files changed, 17 insertions, 7 deletions
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py
index adead243..feca7612 100644
--- a/add_mesh_extra_objects/__init__.py
+++ b/add_mesh_extra_objects/__init__.py
@@ -67,14 +67,9 @@ class INFO_MT_mesh_extras_add(bpy.types.Menu):
layout.menu("INFO_MT_mesh_gears_add", text="Gears")
layout.menu("INFO_MT_mesh_math_add", text="Math Function")
layout.menu("INFO_MT_mesh_basic_add", text="Basic Objects")
- layout.operator("mesh.primitive_twisted_torus_add",
- text="Twisted Torus")
- layout.operator("mesh.primitive_polysphere_add",
- text="Polysphere")
- layout.operator("mesh.primitive_supertoroid_add",
- text="Supertoroid")
+ layout.menu("INFO_MT_mesh_torus_add", text="Torus Objects")
layout.operator("mesh.primitive_steppyramid_add",
- text="Pyramid")
+ text="Step Pyramid")
class INFO_MT_mesh_gemstones_add(bpy.types.Menu):
# Define the "Gemstones" menu
@@ -131,6 +126,21 @@ class INFO_MT_mesh_basic_add(bpy.types.Menu):
text="Star")
layout.operator("mesh.primitive_trapezohedron_add",
text="Trapezohedron")
+ layout.operator("mesh.primitive_polysphere_add",
+ text="Polysphere")
+
+class INFO_MT_mesh_torus_add(bpy.types.Menu):
+ # Define the "Simple Objects" menu
+ bl_idname = "INFO_MT_mesh_torus_add"
+ bl_label = "Torus Objects"
+
+ def draw(self, context):
+ layout = self.layout
+ layout.operator_context = 'INVOKE_REGION_WIN'
+ layout.operator("mesh.primitive_twisted_torus_add",
+ text="Twisted Torus")
+ layout.operator("mesh.primitive_supertoroid_add",
+ text="Supertoroid")
# Register all operators and panels