refactor(rcf): draw refactoring

This commit is contained in:
Swann Martinez
2019-04-01 12:28:13 +02:00
parent 8a6cd5fc11
commit a8f0f4ee87
2 changed files with 236 additions and 4 deletions

View File

@ -13,15 +13,16 @@ import mathutils
from bpy_extras import view3d_utils
from gpu_extras.batch import batch_for_shader
from . import net_components, net_ui, rna_translation
from . import net_components, net_ui, rna_translation, net_draw
from .libs import dump_anything
logger = logging.getLogger(__name__)
client = None
server = None
context = None
drawer = None
update_list = {}
@ -519,9 +520,12 @@ class session_join(bpy.types.Operator):
net_settings.is_running = True
register_ticks()
bpy.ops.session.draw('INVOKE_DEFAULT')
drawer = net_components.drawer(client_instance=client)
register_ticks()
# bpy.ops.session.draw('INVOKE_DEFAULT')
return {"FINISHED"}