Skip to content
Snippets Groups Projects
__init__.py 698 B
Newer Older
  • Learn to ignore specific revisions
  • # SPDX-License-Identifier: GPL-2.0-or-later
    
    Brendon Murphy's avatar
    Brendon Murphy committed
    
    
    bl_info = {
    
    Luca Bonavita's avatar
    Luca Bonavita committed
        "name": "BoltFactory",
    
        "author": "Aaron Keith",
    
    Aaron Keith's avatar
    Aaron Keith committed
        "version": (0, 4, 0),
        "blender":  (2, 80, 0),
    
        "description": "Add a bolt or nut",
    
        "doc_url": "{BLENDER_MANUAL_URL}/addons/add_mesh/boltfactory.html",
    
    if "bpy" in locals():
    
        import importlib
        importlib.reload(Boltfactory)
    
        importlib.reload(createMesh)
    
        from . import Boltfactory
        from . import createMesh
    
    
    # ### REGISTER ###
    
    Brendon Murphy's avatar
    Brendon Murphy committed
    
    
    
    def register():
    
        Boltfactory.register()
    
    Brendon Murphy's avatar
    Brendon Murphy committed
    
    def unregister():
    
    Aaron Keith's avatar
    Aaron Keith committed
        Boltfactory.unregister()
    
    Brendon Murphy's avatar
    Brendon Murphy committed
    if __name__ == "__main__":
    
    Luca Bonavita's avatar
    Luca Bonavita committed
        register()