refactor: move session data to init, class renaming

This commit is contained in:
Swann Martinez
2019-05-15 14:52:45 +02:00
parent 0873d63333
commit cadafb8281
7 changed files with 179 additions and 199 deletions

View File

@ -122,7 +122,7 @@ class DrawFactory(object):
def draw_client_selected_objects(self, client):
if client:
name = client['id']
local_username = bpy.context.window_manager.session_settings.username
local_username = bpy.context.window_manager.session.username
if name != local_username:
if client['active_objects']:
@ -165,7 +165,7 @@ class DrawFactory(object):
def draw_client(self, client):
if client:
name = client['id']
local_username = bpy.context.window_manager.session_settings.username
local_username = bpy.context.window_manager.session.username
if name != local_username:
try: