feat: basic diff implementation

This commit is contained in:
Swann Martinez
2019-08-14 15:01:30 +02:00
parent b1edd3eab2
commit 6b15d4c138
13 changed files with 44 additions and 56 deletions

View File

@ -93,12 +93,11 @@ class SessionStartOperator(bpy.types.Operator):
_type = getattr(bl_types, type)
supported_bl_types.append(_type.bl_id)
if _type.bl_id == 'users':#For testing
bpy_factory.register_type(_type.bl_class, _type.bl_rep_class, timer=0.1,automatic=True)
delayables.append(delayable.ApplyTimer(timout=0.1,target_type=_type.bl_rep_class))
else:
bpy_factory.register_type(_type.bl_class, _type.bl_rep_class)
bpy_factory.register_type(_type.bl_class, _type.bl_rep_class, timer=_type.bl_delay_refresh,automatic=True)
if _type.bl_delay_apply > 0:
delayables.append(delayable.ApplyTimer(timout=_type.bl_delay_apply,target_type=_type.bl_rep_class))
client = Client(factory=bpy_factory)
if self.host:
@ -126,8 +125,8 @@ class SessionStartOperator(bpy.types.Operator):
)
settings.user_uuid = client.add(usr)
# delayables.append(delayable.DrawClients())
delayables.append(delayable.ClientUpdate(client_uuid=settings.user_uuid))
# Push all added values
client.push()
@ -137,6 +136,7 @@ class SessionStartOperator(bpy.types.Operator):
for d in delayables:
d.register()
return {"FINISHED"}