-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path__init__.py
46 lines (34 loc) · 1.09 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
import bpy, os, importlib
from bpy.props import EnumProperty
from . import gamerig_generate
from . import ui
from . import operators
from . utils import space_switch
rigify_info = {
'name': "GameRig",
'author': "Armin Halac",
'version': (1, 0, 0),
'blender': (3, 5, 1),
'description': "Feature set made for game rigs",
'doc_url': "https://github.com/Arminando/GameRig#readme",
'link': "https://github.com/Arminando/GameRig",
}
modules = [
space_switch,
gamerig_generate,
operators,
ui,
]
def register():
# Properties
bpy.types.Armature.gameRig_force_generator = EnumProperty(items=(('Auto', 'Auto', 'Do not override'), ('Rigify', 'Rigify', 'Always use default generator'), ('GameRig', 'GameRig', 'Always use GameRig generator')), name='Force Generator')
from bpy.utils import register_class
for m in modules:
importlib.reload(m)
m.register()
def unregister():
# Properties
del bpy.types.Armature.gameRig_force_generator
from bpy.utils import unregister_class
for m in reversed(modules):
m.unregister()