2022-12-24 15:30:32 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
Extending features of the Asset Browser for a studio use.
|
|
|
|
"""
|
|
|
|
|
|
|
|
bl_info = {
|
|
|
|
"name": "Asset Library",
|
|
|
|
"description": "Asset Library based on the Asset Browser.",
|
2024-05-27 17:22:45 +02:00
|
|
|
"author": "Christophe Seux",
|
2022-12-24 15:30:32 +01:00
|
|
|
"version": (2, 0),
|
2024-05-27 17:22:45 +02:00
|
|
|
"blender": (4, 0, 2),
|
2022-12-24 15:30:32 +01:00
|
|
|
"warning": "In development, things may change",
|
2024-05-27 17:22:45 +02:00
|
|
|
"location": "Asset Browser",
|
|
|
|
"category": "Import-Export",
|
2022-12-24 15:30:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
from . import operators, properties, ui, preferences
|
2022-12-24 15:30:32 +01:00
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
modules = (
|
2022-12-24 15:30:32 +01:00
|
|
|
operators,
|
2024-05-27 17:22:45 +02:00
|
|
|
properties,
|
|
|
|
ui,
|
2023-01-17 18:05:22 +01:00
|
|
|
preferences
|
2022-12-24 15:30:32 +01:00
|
|
|
)
|
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
# Reload Modules from inside Blender
|
|
|
|
if "bpy" in locals():
|
|
|
|
import importlib
|
2023-01-17 18:05:22 +01:00
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
for mod in modules:
|
|
|
|
importlib.reload(mod)
|
2022-12-24 15:30:32 +01:00
|
|
|
|
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
def register():
|
|
|
|
"""Register the addon Asset Library for Blender"""
|
2022-12-24 15:30:32 +01:00
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
for mod in modules:
|
|
|
|
mod.register()
|
2022-12-24 15:30:32 +01:00
|
|
|
|
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
def unregister():
|
|
|
|
"""Unregister the addon Asset Library for Blender"""
|
2022-12-24 15:30:32 +01:00
|
|
|
|
2024-05-27 17:22:45 +02:00
|
|
|
for mod in reversed(modules):
|
|
|
|
mod.unregister()
|