refactor: cleanup

This commit is contained in:
Swann
2019-08-06 16:26:19 +02:00
parent 71e532e14b
commit 0a900b3def
2 changed files with 3 additions and 7 deletions

View File

@ -16,7 +16,7 @@ from pathlib import Path
from . import environment, presence, ui, utils
from .libs import umsgpack
from .libs.replication.client import Client
from .libs.replication.interface import Client
from .libs.replication.data import ReplicatedDataFactory
logger = logging.getLogger(__name__)
@ -432,8 +432,7 @@ def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
# bpy.app.handlers.depsgraph_update_post.append(depsgraph_update)
presence.register()
@ -442,9 +441,6 @@ def unregister():
presence.unregister()
# if bpy.app.handlers.depsgraph_update_post.count(depsgraph_update) > 0:
# bpy.app.handlers.depsgraph_update_post.remove(depsgraph_update)
if client:
client.disconnect()
client = None