-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
50 lines (36 loc) · 1.06 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
bl_info = {
"name": "NR_Cleanup",
"author": "Bigthirsty & Skyrow",
"version": (0, 5, 0), #<major>.<minor>.<patch>
"blender": (3, 6, 0),
"location": "3D Viewport > Sidebar > NR Cleanup",
"description": "Cleans up NinjaRipped trackmania2020 maps to driving surfaces only",
"category": "Trackmania",
}
ROOT_PATH = __file__
LOG_DEBUG = False
import bpy
from . import properties
from . import operators
from . import panels
from .utils import events
from .utils import logs
log = logs.get_logger(__name__)
# Register addon
def register():
logs.start_logging()
# Register classes
properties.register_classes()
operators.register_classes()
panels.register_classes()
# Extend blender data
bpy.types.Scene.nrc_props = bpy.props.PointerProperty(type=properties.NRCleanup_Props)
events.start_listening()
# Unregister addon
def unregister():
events.stop_listening()
# Unregister classes
panels.unregister_classes()
operators.unregister_classes()
properties.unregister_classes()
logs.stop_logging()