[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2763] trunk/py/scripts/addons/ add_mesh_extra_objects: quick fix for add_mesh_pyramid. py not registering in menu
Brendon Murphy
meta.androcto1 at gmail.com
Sun Dec 11 01:36:46 CET 2011
Revision: 2763
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2763
Author: meta-androcto
Date: 2011-12-11 00:36:39 +0000 (Sun, 11 Dec 2011)
Log Message:
-----------
quick fix for add_mesh_pyramid.py not registering in menu
Modified Paths:
--------------
trunk/py/scripts/addons/add_mesh_extra_objects/__init__.py
trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_pyramid.py
Modified: trunk/py/scripts/addons/add_mesh_extra_objects/__init__.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/__init__.py 2011-12-10 11:33:25 UTC (rev 2762)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/__init__.py 2011-12-11 00:36:39 UTC (rev 2763)
@@ -22,8 +22,8 @@
"name": "Extra Objects",
"author": "Multiple Authors",
"version": (0, 3),
- "blender": (2, 5, 9),
- "api": 40638,
+ "blender": (2, 6, 1),
+ "api": 42524,
"location": "View3D > Add > Mesh > Extra Objects",
"description": "Add extra object types",
"warning": "",
@@ -74,7 +74,7 @@
text="Polysphere")
layout.operator("mesh.primitive_supertoroid_add",
text="Supertoroid")
- layout.operator("mesh.primative_step_pyramid_add",
+ layout.operator("mesh.primitive_steppyramid_add",
text="Pyramid")
class INFO_MT_mesh_gemstones_add(bpy.types.Menu):
Modified: trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_pyramid.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_pyramid.py 2011-12-10 11:33:25 UTC (rev 2762)
+++ trunk/py/scripts/addons/add_mesh_extra_objects/add_mesh_pyramid.py 2011-12-11 00:36:39 UTC (rev 2763)
@@ -18,7 +18,7 @@
# ***** END GPL LICENCE BLOCK *****
# (c) 2011 Phil Cote (cotejrp1)
-
+'''
bl_info = {
'name': 'Mesh Pyramid',
'author': 'Phil Cote, cotejrp1, (http://www.blenderaddons.com)',
@@ -29,8 +29,8 @@
'description': 'Create an egyption-style step pyramid',
'warning': '', # used for warning icon and text in addons panel
'category': 'Add Mesh'}
+'''
-
import bpy
from bpy.props import IntProperty, FloatProperty
@@ -109,11 +109,10 @@
res = add_object_data(context, mesh_data, operator=self)
-class OBJECT_OT_add_pyramid(bpy.types.Operator, AddObjectHelper):
+class AddPyramid(bpy.types.Operator, AddObjectHelper):
"""Add a Mesh Object"""
- bl_idname = "mesh.step_pyramid_add"
+ bl_idname = "mesh.primitive_steppyramid_add"
bl_label = "Pyramid"
- bl_description = "Create a Pyramid Mesh"
bl_options = {'REGISTER', 'UNDO'}
initial_size = FloatProperty(name="Initial Size", default=2.0,
@@ -136,7 +135,7 @@
add_pyramid_object(self, context)
return {'FINISHED'}
-
+'''
def menu_func(self, context):
self.layout.operator(OBJECT_OT_add_pyramid.bl_idname,
text="Pyramid", icon="PLUGIN")
@@ -153,3 +152,4 @@
if __name__ == "__main__":
register()
+'''
\ No newline at end of file
More information about the Bf-extensions-cvs
mailing list