refacto: connected user list

Related to #53
This commit is contained in:
Swann Martinez
2020-01-17 18:15:37 +01:00
parent 65fd73d6c0
commit e99e6965ec
4 changed files with 72 additions and 42 deletions

View File

@ -51,6 +51,17 @@ class SessionStartOperator(bpy.types.Operator):
def execute(self, context):
global client, delayables, ui_context
settings = context.window_manager.session
users = bpy.data.window_managers['WinMan'].online_users
# TODO: Sync server clients
users.clear()
#load our infos into the local user list
local_user = users.add()
local_user.name = 'localhost'
local_user.username = settings.username
local_user.current_frame = context.scene.frame_current
# save config
settings.save(context)