-
Notifications
You must be signed in to change notification settings - Fork 85
/
__init__.py
86 lines (76 loc) · 1.94 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
bl_info = {
"name": "AI Render - Stable Diffusion in Blender",
"description": "Create amazing images using Stable Diffusion AI",
"author": "Ben Rugg",
"version": (1, 1, 0),
"blender": (3, 0, 0),
"location": "Render Properties > AI Render",
"warning": "",
"doc_url": "https://github.com/benrugg/AI-Render#readme",
"tracker_url": "https://github.com/benrugg/AI-Render/issues",
"category": "Render",
}
if "bpy" in locals():
import imp
imp.reload(addon_updater_ops)
imp.reload(analytics)
imp.reload(config)
imp.reload(handlers)
imp.reload(operators)
imp.reload(preferences)
imp.reload(progress_bar)
imp.reload(properties)
imp.reload(task_queue)
imp.reload(ui_panels)
imp.reload(ui_preset_styles)
imp.reload(utils)
imp.reload(automatic1111_api)
imp.reload(stability_api)
imp.reload(stablehorde_api)
else:
from . import (
addon_updater_ops,
analytics,
config,
handlers,
operators,
preferences,
progress_bar,
properties,
task_queue,
utils,
)
from .ui import (
ui_panels,
ui_preset_styles,
)
from .sd_backends import (
automatic1111_api,
stability_api,
stablehorde_api,
)
import bpy
def register():
addon_updater_ops.register(bl_info)
analytics.register(bl_info)
handlers.register()
operators.register()
preferences.register()
progress_bar.register()
properties.register()
task_queue.register()
ui_panels.register()
ui_preset_styles.register()
def unregister():
addon_updater_ops.unregister()
analytics.unregister()
handlers.unregister()
operators.unregister()
preferences.unregister()
progress_bar.unregister()
properties.unregister()
task_queue.unregister()
ui_panels.unregister()
ui_preset_styles.unregister()
if __name__ == "__main__":
register()