feat: connection protocol refactoring
This commit is contained in:
Submodule multi_user/libs/replication updated: e5194b4054...f367804514
@ -117,6 +117,9 @@ class SessionStartOperator(bpy.types.Operator):
|
|||||||
|
|
||||||
# Host a session
|
# Host a session
|
||||||
if self.host:
|
if self.host:
|
||||||
|
for scene in bpy.data.scenes:
|
||||||
|
client.add(scene)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
client.host(
|
client.host(
|
||||||
id=settings.username,
|
id=settings.username,
|
||||||
@ -136,6 +139,9 @@ class SessionStartOperator(bpy.types.Operator):
|
|||||||
utils.clean_scene()
|
utils.clean_scene()
|
||||||
# regular client, no password needed
|
# regular client, no password needed
|
||||||
admin_pass = None
|
admin_pass = None
|
||||||
|
else:
|
||||||
|
for scene in bpy.data.scenes:
|
||||||
|
client.add(scene)
|
||||||
try:
|
try:
|
||||||
client.connect(
|
client.connect(
|
||||||
id=settings.username,
|
id=settings.username,
|
||||||
|
@ -25,6 +25,7 @@ from .libs.replication.replication.constants import (ADDED, ERROR, FETCHED,
|
|||||||
STATE_CONFIG, STATE_SYNCING,
|
STATE_CONFIG, STATE_SYNCING,
|
||||||
STATE_INITIAL, STATE_SRV_SYNC,
|
STATE_INITIAL, STATE_SRV_SYNC,
|
||||||
STATE_WAITING, STATE_QUITTING,
|
STATE_WAITING, STATE_QUITTING,
|
||||||
|
STATE_LOBBY,
|
||||||
STATE_LAUNCHING_SERVICES)
|
STATE_LAUNCHING_SERVICES)
|
||||||
|
|
||||||
ICONS_PROP_STATES = ['TRIA_DOWN', # ADDED
|
ICONS_PROP_STATES = ['TRIA_DOWN', # ADDED
|
||||||
@ -72,6 +73,8 @@ def get_state_str(state):
|
|||||||
state_str = 'QUITTING SESSION'
|
state_str = 'QUITTING SESSION'
|
||||||
elif state == STATE_LAUNCHING_SERVICES:
|
elif state == STATE_LAUNCHING_SERVICES:
|
||||||
state_str = 'LAUNCHING SERVICES'
|
state_str = 'LAUNCHING SERVICES'
|
||||||
|
elif state == STATE_LOBBY:
|
||||||
|
state_str = 'LOBBY'
|
||||||
|
|
||||||
return state_str
|
return state_str
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user