-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
52 lines (40 loc) · 1.35 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
bl_info = {
"name": "B-Labels",
"author": "Jordan Hueckstaedt",
"version": (1, 2),
"blender": (2, 63, 0),
"location": "Properties > Shape Keys / Vertex Groups",
"warning": "", # used for warning icon and text in addons panel
"description": "Allows the user to group shape keys into labels.\
Also adds new functions for manipulating shape keys.",
"wiki_url": "",
"tracker_url": "",
"support": "TESTING",
"category": "Rigging"
}
import bpy
from . import blabels
from . import shape_key_panel
from . import vertex_group_panel
def register():
import imp
imp.reload(blabels)
imp.reload(shape_key_panel)
imp.reload(vertex_group_panel)
# Register collections
bpy.utils.register_class(blabels.IndexProperty)
bpy.utils.register_class(blabels.IndexCollection)
# Register panel(s)
shape_key_panel.register()
vertex_group_panel.register()
bpy.utils.register_module(__name__)
def unregister():
bpy.utils.unregister_module(__name__)
# IndexProperty and IndexCollection are part of this module, so they
# are already unregistered in unregister_module. They only needed to
# be registered explicitly, because they needed to be registered before
# specific panels.
vertex_group_panel.unregister()
shape_key_panel.unregister()
if __name__ == "__main__":
register()