-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__init__.py
40 lines (31 loc) · 899 Bytes
/
__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
bl_info = {
"name": "Viewport QuickTheme",
"author": "Spectral Vectors",
"version": (0, 3),
"blender": (2, 90, 0),
"location": "View 3D",
"description": "Shortcuts and presets for the Viewport theme",
"warning": "",
"doc_url": "",
"category": "View 3D",
}
import bpy
from .ViewportQuickTheme import (
ViewportQuickThemePanel,
ViewportQuickThemeVariables,
)
classes = (
ViewportQuickThemePanel,
ViewportQuickThemeVariables,
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
bpy.types.Scene.vpqt_vars = bpy.props.PointerProperty(type=ViewportQuickThemeVariables)
def unregister():
from bpy.utils import unregister_class
for cls in reversed(classes):
unregister_class(cls)
if __name__ == "__package__":
register()