[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2307] trunk/py/scripts/addons/ add_mesh_extra_objects/__init__.py: added menu for Basic Objects to clean menu.
Brendon Murphy
meta.androcto1 at gmail.com
Tue Sep 6 03:10:50 CEST 2011
Revision: 2307
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2307
Author: meta-androcto
Date: 2011-09-06 01:10:47 +0000 (Tue, 06 Sep 2011)
Log Message:
-----------
added menu for Basic Objects to clean menu.
wedge, sqorus, trapezohedron & star moved to this menu
Modified Paths:
--------------
trunk/py/scripts/addons/add_mesh_extra_objects/__init__.py
Modified: trunk/py/scripts/addons/add_mesh_extra_objects/__init__.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/__init__.py 2011-09-05 14:08:00 UTC (rev 2306)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/__init__.py 2011-09-06 01:10:47 UTC (rev 2307)
@@ -21,7 +21,7 @@
"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,16 +60,11 @@
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
bl_idname = "INFO_MT_mesh_gemstones_add"
@@ -110,6 +105,22 @@
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
More information about the Bf-extensions-cvs
mailing list