fix: client list update

This commit is contained in:
swann
2019-05-22 17:17:09 +02:00
parent cef8a91bf1
commit 1f9b4106d9
2 changed files with 7 additions and 6 deletions

View File

@ -23,13 +23,14 @@ cwd_for_subprocesses = python_path.parent
# UTILITY FUNCTIONS # UTILITY FUNCTIONS
def client_list_callback(scene, context): def client_list_callback(scene, context):
global client_keys from . import operators
items = [("Common", "Common", "")] items = [("Common", "Common", "")]
username = bpy.context.window_manager.session.username username = bpy.context.window_manager.session.username
if client_keys: if operators.client_keys:
for k in client_keys: for k in operators.client_keys:
if 'Client' in k[0]: if 'Client' in k[0]:
name = k[1] name = k[1]

View File

@ -104,8 +104,8 @@ def refresh_session_data():
def default_tick(): def default_tick():
refresh_session_data() # refresh_session_data()
upload_client_instance_position() # upload_client_instance_position()
return .2 return .2
@ -475,8 +475,8 @@ def depsgraph_update(scene):
toogle_update_dirty(ctx, update) toogle_update_dirty(ctx, update)
else: else:
item = get_datablock_from_update(update,ctx) item = get_datablock_from_update(update,ctx)
#get parent authority
#get parent authority
if hasattr(item,"id"): if hasattr(item,"id"):
parent_id = ctx.collection.id if ctx.collection.id != 'None' else ctx.scene.id parent_id = ctx.collection.id if ctx.collection.id != 'None' else ctx.scene.id