Skip to content
Snippets Groups Projects
__init__.py 1.96 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Paul "BrikBot" Marshall
    # Created: July 1, 2011
    
    # Homepage (blog): http://post.darkarsenic.com/
    #                       //blog.darkarsenic.com/
    # Thanks to Meta-Androco, RickyBlender, Ace Dragon, and PKHG for ideas
    #   and testing.
    #
    
    # Coded in IDLE, tested in Blender 2.68a.  NumPy Recommended.
    
    # Search for "@todo" to quickly find sections that need work.
    #
    # ##### BEGIN GPL LICENSE BLOCK #####
    #
    
    #  The Blender Rock Creation tool is for rapid generation of
    #  mesh rocks in Blender.
    
    #  Copyright (C) 2011  Paul Marshall
    #
    #  This program is free software: you can redistribute it and/or modify
    #  it under the terms of the GNU General Public License as published by
    #  the Free Software Foundation, either version 3 of the License, or
    #  (at your option) any later version.
    #
    #  This program is distributed in the hope that it will be useful,
    #  but WITHOUT ANY WARRANTY; without even the implied warranty of
    #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #  GNU General Public License for more details.
    #
    #  You should have received a copy of the GNU General Public License
    #  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    #
    # ##### END GPL LICENSE BLOCK #####
    
    
    bl_info = {
        "name": "Rock Generator",
        "author": "Paul Marshall (brikbot)",
    
        "blender": (2, 80, 0),
    
        "location": "View3D > Add > Rock Generator",
        "description": "Adds a mesh rock to the Add Mesh menu",
    
        "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
    
        "Scripts/Add_Mesh/Rock_Generator",
    
        "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
    
        "category": "Add Mesh"}
    
    
    if "bpy" in locals():
    
        from importlib import reload
        reload(rockgen)
    
    else:
        from add_mesh_rocks import rockgen
    
    import bpy
    
    
    Campbell Barton's avatar
    Campbell Barton committed
    
    
    # Register:
    def register():
    
        rockgen.register()
    
    def unregister():
    
        rockgen.unregister()
    
    if __name__ == "__main__":
        register()