-
Notifications
You must be signed in to change notification settings - Fork 4
/
__init__.py
38 lines (30 loc) · 882 Bytes
/
__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
from . import operators
from . import panels
import importlib
bl_info = {
"name": "Character-UI",
"description": "Addon for creating simple yet functional menus for your characters",
"author": "nextr",
"version": (1, 2, 3),
"blender": (3, 0, 0),
"location": "View3d > Sidebar > Character-UI",
"category": 'Interface',
"doc_url": "https://github.com/nextr3d/Character-UI/wiki",
"tracker_url": "https://github.com/nextr3d/Character-UI/issues"
}
modules = [
panels,
operators
]
def register():
for m in modules:
importlib.reload(m)
if hasattr(m, 'register'):
m.register()
def unregister():
# Apparently it's better to unregister modules in the reversed order
for m in reversed(modules):
if hasattr(m, "unregister"):
m.unregister()
if __name__ == "__main__":
register()