diff options
author | Brendon Murphy <meta.androcto1@gmail.com> | 2011-10-10 13:22:50 +0400 |
---|---|---|
committer | Brendon Murphy <meta.androcto1@gmail.com> | 2011-10-10 13:22:50 +0400 |
commit | 3e0c882f06b73726ff7c764ca9c78c010306a9eb (patch) | |
tree | 392068179fa611a8d30d6b7662e5dbd7e99f821e /add_mesh_extra_objects/add_mesh_pyramid.py | |
parent | 4944da5e4b891895dcba7ee8beb97f56e954e642 (diff) |
removing version info & general clean up
version info is now located on the wiki page for the script/s
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_pyramid.py')
-rw-r--r-- | add_mesh_extra_objects/add_mesh_pyramid.py | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/add_mesh_extra_objects/add_mesh_pyramid.py b/add_mesh_extra_objects/add_mesh_pyramid.py index 1b1148f0..92f7f851 100644 --- a/add_mesh_extra_objects/add_mesh_pyramid.py +++ b/add_mesh_extra_objects/add_mesh_pyramid.py @@ -29,15 +29,13 @@ bl_info = { '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 FloatVectorProperty, IntProperty, FloatProperty from add_utils import AddObjectHelper, add_object_data from mathutils import Vector - def makePyramid( initialSize, stepHeight, stepWidth, numberSteps ): vertList = [] @@ -107,7 +105,6 @@ def add_pyramid_object( self, context ): res = add_object_data( context, mesh_data, operator=self ) - class OBJECT_OT_add_pyramid(bpy.types.Operator, AddObjectHelper): """Add a Mesh Object""" bl_idname = "mesh.primative_step_pyramid_add" @@ -124,20 +121,3 @@ class OBJECT_OT_add_pyramid(bpy.types.Operator, AddObjectHelper): def execute(self, context): add_pyramid_object(self, context) return {'FINISHED'} - -''' -def menu_func(self, context): - self.layout.operator(OBJECT_OT_add_pyramid.bl_idname, text="Pyramid", icon="MESH_CUBE") - -def register(): - bpy.utils.register_class(OBJECT_OT_add_pyramid) - bpy.types.INFO_MT_mesh_add.append(menu_func) - - -def unregister(): - bpy.utils.unregister_class(OBJECT_OT_add_pyramid) - bpy.types.INFO_MT_mesh_add.remove(menu_func) - -if __name__ == "__main__": - register() -''' |