-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
53 lines (42 loc) · 1.21 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
import os
from . import config
# Sadly bl_info related fields cannot be put into config or it will coz an
# ast parse traceback
bl_info = {
"name": "bitto",
"author": "Joey Chen",
"version": (0, 0, 1),
"blender": (3, 2, 0),
"location": "",
"description": "Blender Addon Template for Renderers",
"warning": "",
"category": "Render"
}
if "bpy" in locals():
import importlib
importlib.reload(ui)
else:
import bpy
def register():
print('registering the {} renderer'.format(config.engine_name))
from .utils.registry import regular_registry, shading_node_registry, property_group_registry
from . import render
from . import ui
ui.setup()
render.setup()
property_group_registry.register()
regular_registry.register()
shading_node_registry.register()
#render.register()
#ui.register()
def unregister():
from .utils.registry import regular_registry, shading_node_registry, property_group_registry
#from . import render
#from . import ui
property_group_registry.unregister()
regular_registry.unregister()
shading_node_registry.unregister()
#render.unregister()
#ui.unregister()
if __name__ == '__main__':
register()