parent
1c0c2f45bf
commit
0b55bf671d
|
@ -2,7 +2,7 @@ bl_info = {
|
||||||
"name": "Rig Picker",
|
"name": "Rig Picker",
|
||||||
"author": "Christophe Seux",
|
"author": "Christophe Seux",
|
||||||
"version": (0, 1),
|
"version": (0, 1),
|
||||||
"blender": (3, 0, 1),
|
"blender": (3, 0, 2),
|
||||||
"location": "",
|
"location": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
@ -38,11 +38,15 @@ if "bpy" in locals():
|
||||||
importlib.reload(module)
|
importlib.reload(module)
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
if bpy.app.background:
|
||||||
|
return
|
||||||
for name in modules:
|
for name in modules:
|
||||||
module = importlib.import_module(name, __name__)
|
module = importlib.import_module(name, __name__)
|
||||||
module.register()
|
module.register()
|
||||||
|
|
||||||
def unregister():
|
def unregister():
|
||||||
|
if bpy.app.background:
|
||||||
|
return
|
||||||
for name in reversed(modules):
|
for name in reversed(modules):
|
||||||
module = importlib.import_module(name, __name__)
|
module = importlib.import_module(name, __name__)
|
||||||
module.unregister()
|
module.unregister()
|
||||||
|
|
Loading…
Reference in New Issue