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:
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_pyramid.py')
-rw-r--r--add_mesh_extra_objects/add_mesh_pyramid.py22
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()
-'''