~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to release/scripts/addons_contrib/add_mesh_stairs/__init__.py

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-05-12 20:02:22 UTC
  • mfrom: (14.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20120512200222-lznjs2cxzaq96wua
Tags: 2.63a-1
* New upstream bugfix release
  + debian/patches/: re-worked since source code changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Paul "BrikBot" Marshall
2
 
# Created: July 24, 2011
3
 
# Last Modified: November 20, 2011
4
 
# Homepage (blog): http://post.darkarsenic.com/
5
 
#                       //blog.darkarsenic.com/
6
 
#
7
 
# Coded in IDLE, tested in Blender 2.59.
8
 
# Search for "@todo" to quickly find sections that need work.
9
 
#
10
 
# ##### BEGIN GPL LICENSE BLOCK #####
11
 
#
12
 
#  The Blender Rock Creation tool is for rapid generation of mesh rocks in Blender.
13
 
#  Copyright (C) 2011  Paul Marshall
14
 
#
15
 
#  This program is free software: you can redistribute it and/or modify
16
 
#  it under the terms of the GNU General Public License as published by
17
 
#  the Free Software Foundation, either version 3 of the License, or
18
 
#  (at your option) any later version.
19
 
#
20
 
#  This program is distributed in the hope that it will be useful,
21
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 
#  GNU General Public License for more details.
24
 
#
25
 
#  You should have received a copy of the GNU General Public License
26
 
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.
27
 
#
28
 
# ##### END GPL LICENSE BLOCK #####
29
 
 
30
 
bl_info = {
31
 
    "name": "StairBuilder",
32
 
    "author": "Nick van Adium",
33
 
    "version": (1,1),
34
 
    "blender": (2, 6, 1),
35
 
    "location": "View3D > Add > Stairs",
36
 
    "description": "Creates a straight-run staircase with railings and stringer",
37
 
    "warning": "Add-on is very feature incomplete beyond basic functionality.",
38
 
    "wiki_url": "",
39
 
    "tracker_url": "",
40
 
    "category": "Add Mesh"}
41
 
 
42
 
if "bpy" in locals():
43
 
    import imp
44
 
    imp.reload(stairbuilder)
45
 
else:
46
 
    from add_mesh_stairs import stairbuilder
47
 
 
48
 
import bpy
49
 
 
50
 
# Register:
51
 
 
52
 
def menu_func_stairs(self, context):
53
 
    self.layout.operator(stairbuilder.stairs.bl_idname, text="StairBuilder", icon = "PLUGIN")
54
 
 
55
 
def register():
56
 
    bpy.utils.register_module(__name__)
57
 
 
58
 
    bpy.types.INFO_MT_mesh_add.append(menu_func_stairs)
59
 
 
60
 
def unregister():
61
 
    bpy.utils.unregister_module(__name__)
62
 
 
63
 
    bpy.types.INFO_MT_mesh_add.remove(menu_func_stairs)
64
 
 
65
 
if __name__ == "__main__":
66
 
    register()