-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlogic_bricks.py
46 lines (32 loc) · 877 Bytes
/
logic_bricks.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
'''This module provides Node wrapper over general logic bricks.
rev.1
Tasks:
-make ability to change type of logic brick (first value).
'''
import bpy
from logic_bricks_tree import *
from logic_bricks_sockets import *
from logic_bricks_operators import *
from logic_bricks_nodes import *
from logic_bricks_categories import *
def register():
register_logic_bricks_tree ()
register_logic_bricks_sockets ()
register_logic_bricks_operators ()
register_logic_bricks_nodes ()
register_logic_bricks_categories ()
def unregister():
unregister_logic_bricks_categories ()
unregister_logic_bricks_tree ()
unregister_logic_bricks_sockets ()
unregister_logic_bricks_nodes ()
unregister_logic_bricks_operators ()
if __name__ == "__main__":
try:
bpy.activated
except AttributeError:
register()
bpy.activated = True
else:
unregister()
del bpy.activated