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>2014-08-04 18:31:22 +0400
committerBrendon Murphy <meta.androcto1@gmail.com>2014-08-04 18:31:22 +0400
commit263763f2d120000c9d75777afe299418335b4adb (patch)
tree378df844b21ec5cd8a154c70454140471ec758ac /add_mesh_extra_objects/add_mesh_teapot.py
parentc2d1f06c06097965abdb00bcda557704d917dd19 (diff)
updates & cleanup, merged pipe joints & solid objects, cleaner integration into shift/a
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_teapot.py')
-rw-r--r--add_mesh_extra_objects/add_mesh_teapot.py35
1 files changed, 2 insertions, 33 deletions
diff --git a/add_mesh_extra_objects/add_mesh_teapot.py b/add_mesh_extra_objects/add_mesh_teapot.py
index cdbdf7ee..d7cdfcd5 100644
--- a/add_mesh_extra_objects/add_mesh_teapot.py
+++ b/add_mesh_extra_objects/add_mesh_teapot.py
@@ -1,4 +1,4 @@
-'''# +---------------------------------------------------------+
+# +---------------------------------------------------------+
# | Copyright (c) 2005-2010 Anthony D'Agostino |
# | http://home.comcast.net/~chronosphere |
# | scorpius@netzero.com |
@@ -24,18 +24,7 @@
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# ***** END GPL LICENCE BLOCK *****
-
-bl_info = {
- "name": "Teapot+",
- "author": "Anthony D'Agostino",
- "version": (1, 0),
- "blender": (2, 57, 0),
- "location": "View3D > Add > Mesh ",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.5/Py/"
- "Scripts/Add_Teapot",
- "category": "Add Mesh",
-}
-'''
+# "version": (1, 0, 0)
import bpy
from bpy.props import IntProperty
@@ -46,7 +35,6 @@ import io
import operator
import functools
-
class AddTeapot(bpy.types.Operator):
"""Add a teapot mesh"""
bl_idname = "mesh.primitive_teapot_add"
@@ -70,24 +58,6 @@ class AddTeapot(bpy.types.Operator):
obj = create_mesh_object(context, verts, [], faces, "Teapot")
return {'FINISHED'}
-
-def menu_func(self, context):
- self.layout.operator(AddTeapot.bl_idname, text="Teapot+", icon="MESH_CUBE")
-
-
-def register():
- bpy.utils.register_module(__name__)
- bpy.types.INFO_MT_mesh_add.append(menu_func)
-
-
-def unregister():
- bpy.utils.unregister_module(__name__)
- bpy.types.INFO_MT_mesh_add.remove(menu_func)
-
-if __name__ == "__main__":
- register()
-
-
def create_mesh_face_hack(faces):
# FIXME, faces with duplicate vertices shouldn't be created in the first place.
faces_copy = []
@@ -99,7 +69,6 @@ def create_mesh_face_hack(faces):
faces_copy.append(f_copy)
faces[:] = faces_copy
-
def create_mesh_object(context, verts, edges, faces, name):
create_mesh_face_hack(faces)