Skip to content
Snippets Groups Projects
Commit 1e7a51e7 authored by Brendon Murphy's avatar Brendon Murphy
Browse files

clean up menu

parent 69d1c710
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment