feat(rcf): work on updates
This commit is contained in:
@ -260,6 +260,7 @@ class RCFClient():
|
||||
if self.pull_sock in socks:
|
||||
rcfmsg = RCFMessage.recv(self.pull_sock)
|
||||
|
||||
if rcfmsg.id != self.id:
|
||||
rcfmsg.store(self.property_map)
|
||||
|
||||
for f in self.on_recv:
|
||||
|
@ -437,7 +437,7 @@ def load_default(target=None, data=None, create=False, type=None):
|
||||
def update_scene(msg):
|
||||
global client
|
||||
|
||||
if msg.id != client.id:
|
||||
|
||||
net_vars = bpy.context.scene.session_settings
|
||||
|
||||
# if net_vars.active_object:
|
||||
@ -520,7 +520,7 @@ post_init_callbacks = [refresh_window]
|
||||
def default_tick():
|
||||
if not update_tasks.empty():
|
||||
update = update_tasks.get()
|
||||
|
||||
print(update)
|
||||
try:
|
||||
push(update[0],update[1])
|
||||
except:
|
||||
@ -834,12 +834,12 @@ def depsgraph_update(scene):
|
||||
break
|
||||
|
||||
if push:
|
||||
if len(updates) is 1:
|
||||
updated_data = updates[0]
|
||||
if scene.session_settings.active_object and updated_data.id.name == scene.session_settings.active_object.name:
|
||||
if updated_data.is_updated_transform:
|
||||
add_update(updated_data.id.bl_rna.name, updated_data.id.name)
|
||||
else:
|
||||
# if len(updates) is 1:
|
||||
# updated_data = updates[0]
|
||||
# if scene.session_settings.active_object and updated_data.id.name == scene.session_settings.active_object.name:
|
||||
# if updated_data.is_updated_transform:
|
||||
# add_update(updated_data.id.bl_rna.name, updated_data.id.name)
|
||||
# else:
|
||||
for update in ordered(updates):
|
||||
if update[2] == "Master Collection":
|
||||
pass
|
||||
|
Reference in New Issue
Block a user