-
Notifications
You must be signed in to change notification settings - Fork 23
/
__init__.py
45 lines (37 loc) · 1.05 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": "MeshGen",
"description": "A Blender addon for generating meshes with AI",
"author": "Hugging Face",
"version": (0, 3, 1),
"blender": (4, 1, 0),
"category": "Mesh",
"support": "COMMUNITY",
"update_url": "https://github.com/huggingface/meshgen",
}
import bpy
from .operators import *
from .panels import *
from .preferences import *
from .property_groups import *
classes = (
MeshGenPreferences,
MeshGenProperties,
MESHGEN_OT_InstallDependencies,
MESHGEN_OT_UninstallDependencies,
MESHGEN_OT_DownloadRequiredModels,
MESHGEN_OT_LoadGenerator,
MESHGEN_OT_GenerateMesh,
MESHGEN_OT_CancelGeneration,
MESHGEN_PT_Panel,
MESHGEN_PT_Settings,
MESHGEN_PT_Warning,
MESHGEN_PT_Setup,
)
def register():
for cls in classes:
bpy.utils.register_class(cls)
bpy.types.Scene.meshgen_props = bpy.props.PointerProperty(type=MeshGenProperties)
def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)
del bpy.types.Scene.meshgen_props