feat: move diff to observer

feat: logs
This commit is contained in:
Swann Martinez
2020-02-28 15:39:29 +01:00
parent 28c4ccf1f3
commit 292f76aea5
3 changed files with 3 additions and 7 deletions

View File

@ -81,7 +81,7 @@ class BlDatablock(ReplicatedDatablock):
if self.pointer and hasattr(self.pointer, 'uuid'): if self.pointer and hasattr(self.pointer, 'uuid'):
self.pointer.uuid = self.uuid self.pointer.uuid = self.uuid
self.diff_method = DIFF_BINARY # self.diff_method = DIFF_BINARY
def library_apply(self): def library_apply(self):
"""Apply stored data """Apply stored data

View File

@ -497,15 +497,11 @@ def depsgraph_evaluation(scene):
# - if its ours or ( under common and diff), launch the # - if its ours or ( under common and diff), launch the
# update process # update process
# - if its to someone else, ignore the update (go deeper ?) # - if its to someone else, ignore the update (go deeper ?)
if node.owner in [session_infos.username]: if node.owner in [session_infos.username, 'COMMON']:
# Avoid slow geometry update # Avoid slow geometry update
if 'EDIT' in context.mode: if 'EDIT' in context.mode:
break break
client.stash(node.uuid) client.stash(node.uuid)
# TODO: Do this from replication api...Maybe as a task !
if node.owner == 'COMMON':
if node.diff():
client.stash(node.uuid)
else: else:
# Distant update # Distant update
continue continue