math_vis: remove use of register_module
[blender-addons.git] / uv_magic_uv / __init__.py
blob080d2414fbf5b2e27f81eef620c1cbd80890a1d5
1 # <pep8-80 compliant>
3 # ##### BEGIN GPL LICENSE BLOCK #####
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License
7 # as published by the Free Software Foundation; either version 2
8 # of the License, or (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 # ##### END GPL LICENSE BLOCK #####
21 __author__ = "Nutti <nutti.metro@gmail.com>"
22 __status__ = "production"
23 __version__ = "5.1"
24 __date__ = "24 Feb 2018"
27 bl_info = {
28 "name": "Magic UV",
29 "author": "Nutti, Mifth, Jace Priester, kgeogeo, mem, imdjs"
30 "Keith (Wahooney) Boshoff, McBuff, MaxRobinot, Alexander Milovsky",
31 "version": (5, 1, 0),
32 "blender": (2, 79, 0),
33 "location": "See Add-ons Preferences",
34 "description": "UV Toolset. See Add-ons Preferences for details",
35 "warning": "",
36 "support": "COMMUNITY",
37 "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/"
38 "Py/Scripts/UV/Magic_UV",
39 "tracker_url": "https://github.com/nutti/Magic-UV",
40 "category": "UV"
43 if "bpy" in locals():
44 import importlib
45 importlib.reload(op)
46 importlib.reload(ui)
47 importlib.reload(common)
48 importlib.reload(preferences)
49 importlib.reload(properites)
50 else:
51 from . import op
52 from . import ui
53 from . import common
54 from . import preferences
55 from . import properites
57 import bpy
60 def register():
61 bpy.utils.register_module(__name__)
62 properites.init_props(bpy.types.Scene)
65 def unregister():
66 bpy.utils.unregister_module(__name__)
67 properites.clear_props(bpy.types.Scene)
70 if __name__ == "__main__":
71 register()