feat: sync test
This commit is contained in:
15
operators.py
15
operators.py
@ -194,11 +194,24 @@ def draw_tick():
|
||||
|
||||
return .2
|
||||
|
||||
def sync():
|
||||
global client_instance
|
||||
|
||||
if client_instance:
|
||||
for datatype in SUPPORTED_TYPES:
|
||||
for item in getattr(bpy.data, helpers.CORRESPONDANCE[datatype]):
|
||||
if item.id == 'None':
|
||||
item.id= bpy.context.scene.session_settings.username
|
||||
key = "{}/{}".format(datatype, item.name)
|
||||
client_instance.queue.put(key)
|
||||
|
||||
|
||||
return .2
|
||||
|
||||
def register_ticks():
|
||||
# REGISTER Updaters
|
||||
bpy.app.timers.register(draw_tick)
|
||||
|
||||
bpy.app.timers.register(sync)
|
||||
bpy.app.timers.register(default_tick)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user