-
Notifications
You must be signed in to change notification settings - Fork 77
/
__init__.py
executable file
·45 lines (37 loc) · 1.54 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
bl_info = {
"name": "TreeGen",
"category": "Object",
"description": "Generate high quality tree models",
"author": "Charlie Hewitt and Sami Pflibsen-Jones",
"version": (0, 0, 4),
"wiki_url": "https://github.com/friggog/tree-gen/wiki",
"tracker_url": "https://github.com/friggog/tree-gen/issues/new/choose",
'blender': (2, 80, 0)
}
import bpy
from . import gui
def register():
bpy.utils.register_class(gui.TreeGen)
bpy.utils.register_class(gui.TreeGenPanel)
bpy.utils.register_class(gui.TreeGenCustomisePanel)
bpy.utils.register_class(gui.TreeGenUtilitiesPanel)
bpy.utils.register_class(gui.TreeGenRender)
bpy.utils.register_class(gui.TreeGenConvertToMesh)
bpy.utils.register_class(gui.TreeGenCreateLeafLODs)
bpy.utils.register_class(gui.TreeGenMainThreadExecuter)
bpy.utils.register_class(gui.TreeGenSaveFile)
bpy.utils.register_class(gui.TreeGenLoadParams)
def unregister():
# Reversing order is best-practice
bpy.utils.unregister_class(gui.TreeGenLoadParams)
bpy.utils.unregister_class(gui.TreeGenSaveFile)
bpy.utils.unregister_class(gui.TreeGenMainThreadExecuter)
bpy.utils.unregister_class(gui.TreeGenCreateLeafLODs)
bpy.utils.unregister_class(gui.TreeGenConvertToMesh)
bpy.utils.unregister_class(gui.TreeGenRender)
bpy.utils.unregister_class(gui.TreeGenUtilitiesPanel)
bpy.utils.unregister_class(gui.TreeGenCustomisePanel)
bpy.utils.unregister_class(gui.TreeGenPanel)
bpy.utils.unregister_class(gui.TreeGen)
if __name__ == "__main__":
register()