-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
55 lines (38 loc) · 1.19 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ------------------------------------------------------------
# Copyright(c) 2018-2020 Jesse Yurkovich
# Licensed under the MIT License <http://opensource.org/licenses/MIT>.
# See the LICENSE file in the repo root for full license information.
# ------------------------------------------------------------
import bpy
from . import auto_load
bl_info = {
"name": "dconfig",
"author": "deadpin",
"version": (1, 0),
"blender": (2, 80, 0),
"location": "",
"description": "Custom settings",
"warning": "",
"wiki_url": "",
"tracker_url": "",
"category": "Scene"}
class Preferences(bpy.types.AddonPreferences):
bl_idname = __name__
bl_option = {'REGISTER'}
def draw(self, context):
layout = self.layout
layout.operator("dconfig.install_theme", text="Load Theme")
#
# Addon registration
#
auto_load.init()
def register():
print('DCONFIG :: register')
bpy.utils.register_class(Preferences)
auto_load.register()
def unregister():
print('DCONFIG :: unregister')
auto_load.unregister()
bpy.utils.unregister_class(Preferences)
if __name__ == '__main__':
register()