-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
46 lines (38 loc) · 1.02 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
bl_info = {
"name" : "AddonsPacker",
"description": "For internal use only",
"author" : "Vladislav Ciocoi",
"blender" : (2, 90, 0),
"version" : (1, 0, 0),
"location": "3D View > Tools",
"category": "Development"
}
if 'bpy' not in locals():
import bpy
from bpy.props import PointerProperty
from . import operators
from . import properties
from . import sidepanel
from . import prefs
else:
import imp
imp.reload(operators)
imp.reload(properties)
imp.reload(sidepanel)
imp.reload(prefs)
classes = (
properties.AP_Properties,
operators.BuildAddon,
prefs.AP_Prefs,
sidepanel.SidePanel
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.types.Scene.addon_packer_props = PointerProperty(type=properties.AP_Properties)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
del bpy.types.Scene.addon_packer_props