-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
56 lines (30 loc) · 1.01 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
bl_info = {
"name": "Frame Ranger Lite",
"author": "BlenderBoi, Blastframe",
"version": (2, 0, 2),
"blender": (3, 1, 0),
"description": "Utilities for Frame related operations",
"warning": "",
"wiki_url": "",
"category": "Utility",
}
import bpy
from . import Autofit_Framerange
from . import Animation_Player
from . import Operators
from . import Preferences
from . import Base_Panel
import addon_utils
modules = [Base_Panel, Operators, Autofit_Framerange, Preferences, Animation_Player]
def register():
for mod in addon_utils.modules():
if mod.bl_info.get('name', (-1, -1, -1)) == "Frame Ranger" and mod.bl_info.get('author', (-1, -1, -1)) == "BlenderBoi":
if addon_utils.check(mod.__name__)[1]:
addon_utils.disable(mod.__name__, default_set=True, handle_error=None)
for module in modules:
module.register()
def unregister():
for module in modules:
module.unregister()
if __name__ == "__main__":
register()