rig_picker/__init__.py

54 lines
1.0 KiB
Python
Raw Normal View History

2022-04-06 10:12:32 +02:00
bl_info = {
"name": "Rig Picker",
"author": "Christophe Seux",
"version": (0, 1),
2022-05-26 15:46:57 +02:00
"blender": (3, 0, 2),
2022-04-06 10:12:32 +02:00
"location": "",
"description": "",
"warning": "",
"wiki_url": "",
"tracker_url": "",
"category": "Rigging"}
import importlib
modules = [
'.op_material',
'.op_picker',
'.op_shape',
'.properties',
'.panels',
'.area',
'.gizmo',
'.picker'
]
functions = [
2022-04-12 18:14:56 +02:00
#'.func_picker',
2022-04-06 10:12:32 +02:00
'.func_shape',
'.snapping_utils',
'.utils'
]
import bpy
if "bpy" in locals():
if not bpy.app.background:
for name in modules + functions:
module = importlib.import_module(name, __name__)
importlib.reload(module)
2022-04-06 10:12:32 +02:00
def register():
2022-05-26 15:46:57 +02:00
if bpy.app.background:
return
2022-04-06 10:12:32 +02:00
for name in modules:
module = importlib.import_module(name, __name__)
module.register()
def unregister():
2022-05-26 15:46:57 +02:00
if bpy.app.background:
return
2022-04-06 10:12:32 +02:00
for name in reversed(modules):
module = importlib.import_module(name, __name__)
module.unregister()