This commit is contained in:
“christopheseux”
2023-05-02 18:38:16 +02:00
parent 7f1e2cc0b2
commit 9f11a18c3a
15 changed files with 1655 additions and 1450 deletions
+5 -9
View File
@@ -17,25 +17,21 @@ import sys
from pathlib import Path
sys.modules['vse_toolbox'] = sys.modules.pop(Path(__file__).parent.name)
from vse_toolbox import panels
from vse_toolbox import preferences
from vse_toolbox import properties
from vse_toolbox import ui
from vse_toolbox import operators
from vse_toolbox.constants import ASSET_PREVIEWS
from vse_toolbox.sequencer_utils import set_active_strip, update_text_strips
modules = (
properties,
preferences,
operators,
panels,
ui,
)
if 'bpy' in locals():
import importlib
for module in modules:
importlib.reload(module)
for mod in modules:
importlib.reload(mod)
import bpy
@@ -49,8 +45,8 @@ def register():
bpy.app.handlers.frame_change_post.append(set_active_strip)
bpy.app.handlers.frame_change_post.append(update_text_strips)
def unregister():
def unregister():
try:
bpy.utils.previews.remove(ASSET_PREVIEWS)
except Exception as e: