diff options
author | Brendon Murphy <meta.androcto1@gmail.com> | 2014-08-04 18:31:22 +0400 |
---|---|---|
committer | Brendon Murphy <meta.androcto1@gmail.com> | 2014-08-04 18:31:22 +0400 |
commit | 263763f2d120000c9d75777afe299418335b4adb (patch) | |
tree | 378df844b21ec5cd8a154c70454140471ec758ac /add_mesh_extra_objects/add_mesh_torusknot.py | |
parent | c2d1f06c06097965abdb00bcda557704d917dd19 (diff) |
updates & cleanup, merged pipe joints & solid objects, cleaner integration into shift/a
Diffstat (limited to 'add_mesh_extra_objects/add_mesh_torusknot.py')
-rw-r--r-- | add_mesh_extra_objects/add_mesh_torusknot.py | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/add_mesh_extra_objects/add_mesh_torusknot.py b/add_mesh_extra_objects/add_mesh_torusknot.py index e932adc8..3803ba62 100644 --- a/add_mesh_extra_objects/add_mesh_torusknot.py +++ b/add_mesh_extra_objects/add_mesh_torusknot.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": "Torus Knot", - "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_TorusKnot", - "category": "Add Mesh", -} -''' +# "version": (1, 0, 0) import bpy, mathutils, math def create_mesh_object(context, verts, edges, faces, name): @@ -135,18 +124,3 @@ class AddTorusKnot(bpy.types.Operator): self.resolution) obj = create_mesh_object(context, verts, [], faces, "Torus Knot") return {'FINISHED'} -''' -def menu_func(self, context): - self.layout.operator(AddTorusKnot.bl_idname, text="Torus Knot", 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() -''' |