Fix mesh_snap_utilities_line running without key-maps available
[blender-addons.git] / magic_uv / __init__.py
blobe9c95f2428dba9d2113efd83ffb76976944444c3
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__ = "6.4"
24 __date__ = "23 Oct 2020"
27 bl_info = {
28 "name": "Magic UV",
29 "author": "Nutti, Mifth, Jace Priester, kgeogeo, mem, imdjs"
30 "Keith (Wahooney) Boshoff, McBuff, MaxRobinot, "
31 "Alexander Milovsky, Dusan Stevanovic, MatthiasThDs",
32 "version": (6, 4, 0),
33 "blender": (2, 80, 0),
34 "location": "See Add-ons Preferences",
35 "description": "UV Toolset. See Add-ons Preferences for details",
36 "warning": "",
37 "support": "COMMUNITY",
38 "wiki_url": "https://docs.blender.org/manual/en/dev/addons/"
39 "uv/magic_uv.html",
40 "doc_url": "{BLENDER_MANUAL_URL}/addons/uv/magic_uv.html",
41 "tracker_url": "https://github.com/nutti/Magic-UV",
42 "category": "UV",
46 if "bpy" in locals():
47 import importlib
48 importlib.reload(common)
49 importlib.reload(utils)
50 utils.bl_class_registry.BlClassRegistry.cleanup()
51 importlib.reload(op)
52 importlib.reload(ui)
53 importlib.reload(properites)
54 importlib.reload(preferences)
55 importlib.reload(updater)
56 else:
57 import bpy
58 from . import common
59 from . import utils
60 from . import op
61 from . import ui
62 from . import properites
63 from . import preferences
64 from . import updater
66 import bpy
69 def register():
70 updater.register_updater(bl_info)
72 utils.bl_class_registry.BlClassRegistry.register()
73 properites.init_props(bpy.types.Scene)
74 user_prefs = utils.compatibility.get_user_preferences(bpy.context)
75 if user_prefs.addons['magic_uv'].preferences.enable_builtin_menu:
76 preferences.add_builtin_menu()
79 def unregister():
80 preferences.remove_builtin_menu()
81 properites.clear_props(bpy.types.Scene)
82 utils.bl_class_registry.BlClassRegistry.unregister()
85 if __name__ == "__main__":
86 register()