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>2011-09-06 05:10:47 +0400
committerBrendon Murphy <meta.androcto1@gmail.com>2011-09-06 05:10:47 +0400
commitf35684c538fa8e11940df3c24111be237d8ab254 (patch)
treeac2c6b7c92ee071b23cab25847a54ec2e5df7f4b /add_mesh_extra_objects/__init__.py
parent6efe8ccf551e9c3dd7354387da3cf6256dac5bf8 (diff)
added menu for Basic Objects to clean menu.
wedge, sqorus, trapezohedron & star moved to this menu
Diffstat (limited to 'add_mesh_extra_objects/__init__.py')
-rw-r--r--add_mesh_extra_objects/__init__.py27
1 files changed, 19 insertions, 8 deletions
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py
index 06fa7a84..6cdee238 100644
--- a/add_mesh_extra_objects/__init__.py
+++ b/add_mesh_extra_objects/__init__.py
@@ -21,7 +21,7 @@ bl_info = {
"author": "Pontiac, Fourmadmen, varkenvarken, tuga3d, meta-androcto",
"version": (0, 1),
"blender": (2, 5, 9),
- "api": 39685,
+ "api": 39933,
"location": "View3D > Add > Mesh > Extra Objects",
"description": "Adds More Object Types.",
"warning": "",
@@ -60,15 +60,10 @@ class INFO_MT_mesh_extras_add(bpy.types.Menu):
layout.menu("INFO_MT_mesh_gemstones_add", text="Gemstones")
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_sqorus_add",
- text="Sqorus")
- layout.operator("mesh.primitive_wedge_add")
- layout.operator("mesh.primitive_star_add",
- text="Star")
- layout.operator("mesh.primitive_trapezohedron_add",
- text="Trapezohedron")
+
class INFO_MT_mesh_gemstones_add(bpy.types.Menu):
# Define the "Gemstones" menu
@@ -110,6 +105,22 @@ class INFO_MT_mesh_math_add(bpy.types.Menu):
layout.operator("mesh.primitive_xyz_function_surface",
text="XYZ Math Surface")
+class INFO_MT_mesh_basic_add(bpy.types.Menu):
+ # Define the "Simple Objects" menu
+ bl_idname = "INFO_MT_mesh_basic_add"
+ bl_label = "Simple Objects"
+
+ def draw(self, context):
+ layout = self.layout
+ layout.operator_context = 'INVOKE_REGION_WIN'
+ layout.operator("mesh.primitive_sqorus_add",
+ text="Sqorus")
+ layout.operator("mesh.primitive_wedge_add")
+ layout.operator("mesh.primitive_star_add",
+ text="Star")
+ layout.operator("mesh.primitive_trapezohedron_add",
+ text="Trapezohedron")
+
# Register all operators and panels
# Define "Extras" menu