refacto
This commit is contained in:
+5
-9
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user