-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path__init__.py
98 lines (89 loc) · 2.88 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Nikita Akimov
#
# GitHub
# https://github.com/Korchy/BIS
import bpy
from . import addon_preferences
from . import add_node_group_to_storage
from . import update_node_group
from . import get_node_group_from_storage
from . import get_nodes_from_storage
from . import nodes_panel
from . import add_text_to_storage
from . import update_text
from . import get_text_from_storage
from . import get_texts_from_storage
from . import texts_panel
from . import mesh_panel
from . import get_meshes_from_storage
from . import add_mesh_to_storage
from . import update_mesh_in_storage
from . import get_mesh_from_storage
from . import WebRequests
from . import message_box
from . import bis_items
from . import tools_nodes_ops
from . import tools_materials_ops
from . import nodes_bis_custom
bl_info = {
'name': 'BIS',
'category': 'Material',
'author': 'Nikita Akimov',
'version': (1, 11, 3),
'blender': (2, 93, 0),
'location': 'N-Panel > BIS',
'wiki_url': 'https://bis.interplanety.org/',
'tracker_url': 'https://bis.interplanety.org/',
'description': 'BIS (Blender Interplanety Storage) - online materials/shaders library'
}
def register():
addon_preferences.register()
add_node_group_to_storage.register()
update_node_group.register()
get_node_group_from_storage.register()
get_nodes_from_storage.register()
nodes_panel.register()
if bpy.context.preferences.addons[__package__].preferences.experimental_mode:
nodes_bis_custom.register()
add_text_to_storage.register()
update_text.register()
get_text_from_storage.register()
get_texts_from_storage.register()
texts_panel.register()
mesh_panel.register()
get_meshes_from_storage.register()
add_mesh_to_storage.register()
update_mesh_in_storage.register()
get_mesh_from_storage.register()
WebRequests.register()
message_box.register()
bis_items.register()
tools_nodes_ops.register()
tools_materials_ops.register()
def unregister():
tools_materials_ops.unregister()
tools_nodes_ops.unregister()
bis_items.unregister()
message_box.unregister()
WebRequests.unregister()
get_mesh_from_storage.unregister()
update_mesh_in_storage.unregister()
add_mesh_to_storage.unregister()
get_meshes_from_storage.unregister()
mesh_panel.unregister()
texts_panel.unregister()
get_texts_from_storage.unregister()
get_text_from_storage.unregister()
update_text.unregister()
add_text_to_storage.unregister()
if bpy.context.preferences.addons[__package__].preferences.experimental_mode:
nodes_bis_custom.unregister()
nodes_panel.unregister()
get_nodes_from_storage.unregister()
get_node_group_from_storage.unregister()
update_node_group.unregister()
add_node_group_to_storage.unregister()
addon_preferences.unregister()
if __name__ == "__main__":
register()