Sun position: Fix T80379 - Custom startup breaks the add-on
[blender-addons.git] / object_collection_manager / __init__.py
blob0e093bc5acadb92bc4dd75e9a546d55b19330d90
1 # ##### BEGIN GPL LICENSE BLOCK #####
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 # ##### END GPL LICENSE BLOCK #####
19 # Copyright 2011, Ryan Inch
21 bl_info = {
22 "name": "Collection Manager",
23 "description": "Manage collections and their objects",
24 "author": "Ryan Inch",
25 "version": (2, 18, 0),
26 "blender": (2, 80, 0),
27 "location": "View3D - Object Mode (Shortcut - M)",
28 "warning": '', # used for warning icon and text in addons panel
29 "doc_url": "{BLENDER_MANUAL_URL}/addons/interface/collection_manager.html",
30 "tracker_url": "https://blenderartists.org/t/release-addon-collection-manager-feedback/1186198/",
31 "category": "Interface",
35 if "bpy" in locals():
36 import importlib
38 importlib.reload(cm_init)
39 importlib.reload(internals)
40 importlib.reload(operator_utils)
41 importlib.reload(operators)
42 importlib.reload(qcd_move_widget)
43 importlib.reload(qcd_operators)
44 importlib.reload(ui)
45 importlib.reload(qcd_init)
46 importlib.reload(preferences)
48 else:
49 from . import cm_init
50 from . import internals
51 from . import operator_utils
52 from . import operators
53 from . import qcd_move_widget
54 from . import qcd_operators
55 from . import ui
56 from . import qcd_init
57 from . import preferences
59 import bpy
61 def register():
62 cm_init.register_cm()
64 if bpy.context.preferences.addons[__package__].preferences.enable_qcd:
65 qcd_init.register_qcd()
67 def unregister():
68 if bpy.context.preferences.addons[__package__].preferences.enable_qcd:
69 qcd_init.unregister_qcd()
71 cm_init.unregister_cm()
74 if __name__ == "__main__":
75 register()