Skip to content
Snippets Groups Projects
__init__.py 1.81 KiB
Newer Older
  • Learn to ignore specific revisions
  • Luca Bonavita's avatar
    Luca Bonavita committed
    # ##### BEGIN GPL LICENSE BLOCK #####
    #
    #  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 2
    #  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, write to the Free Software Foundation,
    #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    #
    # ##### END GPL LICENSE BLOCK #####
    
    bl_addon_info = {
        'name': 'Render:PovRay',
        'author': 'Campbell Barton',
        'version': '0.1',
        'blender': (2, 5, 4),
        'location': 'Info Header (engine dropdown)',
        'description': 'Basic povray integration for blender',
        'warning': '', # used for warning icon and text in addons panel
        'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
            'Scripts/Render/PovRay',
        'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
            'func=detail&aid=23145&group_id=153&atid=469',
        'category': 'Render'}
    
    
    def register():
        import bpy
        from render_povray import ui, render
        classes = [render.PovrayRender,ui.RENDER_PT_povray_radiosity]
        register = bpy.types.register
        for cls in classes:
            register(cls)
    
    
    def unregister():
        import bpy
        from render_povray import ui, render
        classes = [render.PovrayRender,ui.RENDER_PT_povray_radiosity]
        unregister = bpy.types.unregister
        for cls in classes:
            unregister(cls)
    
    if __name__ == "__main__":
        register()