fix: presence selection error
This commit is contained in:
@ -44,6 +44,8 @@ class BlUser(BlDatablock):
|
||||
|
||||
|
||||
def diff(self):
|
||||
if not self.pointer:
|
||||
return False
|
||||
if self.pointer.is_dirty:
|
||||
self.pointer.is_dirty = False
|
||||
return True
|
||||
|
@ -126,7 +126,7 @@ class SessionStartOperator(bpy.types.Operator):
|
||||
settings.client_color.b,
|
||||
1),
|
||||
)
|
||||
settings.user_uuid = client.add(usr)
|
||||
settings.user_uuid = client.add(usr,owner=settings.username)
|
||||
client.commit(settings.user_uuid)
|
||||
|
||||
delayables.append(delayable.ClientUpdate(
|
||||
|
@ -187,12 +187,10 @@ class DrawFactory(object):
|
||||
self.d2d_items.clear()
|
||||
|
||||
def draw_client_selection(self, client_uuid, client_color, client_selection):
|
||||
local_username = bpy.context.window_manager.session.username
|
||||
local_user = bpy.context.window_manager.session.user_uuid
|
||||
|
||||
if client_selection and local_user != client_uuid:
|
||||
self.flush_selection()
|
||||
|
||||
if client_selection:
|
||||
|
||||
for select_ob in client_selection:
|
||||
drawable_key = "{}_select_{}".format(client_uuid, select_ob)
|
||||
indices = (
|
||||
@ -220,8 +218,9 @@ class DrawFactory(object):
|
||||
|
||||
def draw_client_camera(self, client_uuid, client_location, client_color):
|
||||
if client_location:
|
||||
local_username = bpy.context.window_manager.session.username
|
||||
local_user = bpy.context.window_manager.session.user_uuid
|
||||
|
||||
if local_user != client_uuid:
|
||||
try:
|
||||
indices = (
|
||||
(1, 3), (2, 1), (3, 0),
|
||||
|
Reference in New Issue
Block a user