fix: internal gizmo error by launching the modal operator from the timer

This commit is contained in:
Swann 2020-10-08 23:42:14 +02:00
parent 34b9f7ae27
commit 299e330ec6
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -38,8 +38,7 @@ from replication.exception import NonAuthorizedOperationError
from replication.interface import session
from . import bl_types, delayable, environment, ui, utils
from .presence import (SessionStatusWidget, refresh_3d_view, renderer,
view3d_find)
from .presence import (SessionStatusWidget, renderer, view3d_find)
background_execution_queue = Queue()
delayables = []
@ -86,6 +85,8 @@ def initialize_session():
if settings.update_method == 'DEPSGRAPH':
bpy.app.handlers.depsgraph_update_post.append(depsgraph_evaluation)
bpy.ops.session.apply_armature_operator('INVOKE_DEFAULT')
@session_callback('on_exit')
def on_connection_end():
@ -263,7 +264,7 @@ class SessionStartOperator(bpy.types.Operator):
delayables.append(session_update)
delayables.append(session_user_sync)
bpy.ops.session.apply_armature_operator()
self.report(
{'INFO'},