-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
71 lines (57 loc) · 1.19 KB
/
__init__.py
File metadata and controls
71 lines (57 loc) · 1.19 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
bl_info = {
"name": "Blender2U",
"author": "R2U",
"description": "Add-ons developed by R2U",
"blender": (2, 92, 0),
"version": (1, 10, 0),
"location": "",
"warning": "",
"wiki_url": "https://github.com/hana3d/blender2u",
"category": "System"
}
import bpy
from . import addon_updater_ops, ui
from .addons import (
auto_scale,
bake_nodes,
collection_grid,
glb_export,
glb_import,
optimization,
polycount,
uv_check
)
classes = (
ui.Blender2UPreferences,
ui.OBJECT_PT_Blender2UPanel
)
addons = {
# analytics,
auto_scale,
bake_nodes,
collection_grid,
glb_export,
glb_import,
polycount,
uv_check,
# blendercv,
# mesh_lint,
# material_library,
# hh_connect,
# blenderkit_adapter,
optimization
}
def register():
addon_updater_ops.register(bl_info)
for cls in classes:
bpy.utils.register_class(cls)
for addon in addons:
addon.register()
def unregister():
addon_updater_ops.unregister()
for addon in addons:
addon.unregister()
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
if __name__ == "__main__":
register()