-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
48 lines (38 loc) · 1.24 KB
/
__init__.py
File metadata and controls
48 lines (38 loc) · 1.24 KB
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
from bpy.utils import register_class, unregister_class
from .core import cleanup_on_reload
from .keymaps import register_keymaps, unregister_keymaps
from .menu_integration import cleanup_menu_on_reload, register_menu, unregister_menu
from .operators import WM_OT_numeric_input, WM_OT_numeric_input_key
from .preferences import OnScreenNumpadPreferences
from .utils.ui_utils import OSN_OT_copy_text_to_clipboard
# bl_info = {
# "name": "On-Screen Numpad",
# "author": "Pluglug",
# "version": (x, x, x),
# "blender": (4, 2, 0),
# "location": "Numeric Property Fields",
# "description": "No need to leave the mouse to enter numbers!",
# "warning": "",
# "wiki_url": "",
# "category": "User Interface",
# }
classes = [
OnScreenNumpadPreferences,
WM_OT_numeric_input,
WM_OT_numeric_input_key,
OSN_OT_copy_text_to_clipboard,
]
cleanup_on_reload()
cleanup_menu_on_reload()
def register():
for cls in classes:
register_class(cls)
register_menu()
register_keymaps()
from .addon import init_addon
init_addon()
def unregister():
unregister_keymaps()
unregister_menu()
for cls in reversed(classes):
unregister_class(cls)