-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path__init__.py
More file actions
52 lines (43 loc) · 1.04 KB
/
__init__.py
File metadata and controls
52 lines (43 loc) · 1.04 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
# support reloading sub-modules
if "bpy" in locals():
import importlib
importlib.reload(camera_controlls)
importlib.reload(ui_helpers)
importlib.reload(dolly_zoom_modal)
importlib.reload(camera_gizmos)
importlib.reload(batch_render)
importlib.reload(keymap)
importlib.reload(preferences)
importlib.reload(ui)
importlib.reload(uilist)
importlib.reload(pie_menu)
else:
from . import camera_controlls
from . import ui_helpers
from . import dolly_zoom_modal
from . import batch_render
from . import camera_gizmos
from . import ui
from . import uilist
from . import preferences
from . import keymap
from . import pie_menu
files = [
camera_controlls,
ui_helpers,
dolly_zoom_modal,
batch_render,
ui,
uilist,
pie_menu,
camera_gizmos,
# keymap and preferences should be last
keymap,
preferences
]
def register():
for file in files:
file.register()
def unregister():
for file in reversed(files):
file.unregister()