From d81b4dc01495fec534a025a096170ae2ddb9cdf8 Mon Sep 17 00:00:00 2001 From: Swann Date: Fri, 18 Jun 2021 15:30:39 +0200 Subject: [PATCH] feat: enable delta back for all datablocks execpt gpencil, files and images --- multi_user/bl_types/bl_action.py | 2 ++ multi_user/bl_types/bl_armature.py | 2 ++ multi_user/bl_types/bl_camera.py | 2 ++ multi_user/bl_types/bl_curve.py | 2 ++ multi_user/bl_types/bl_lattice.py | 2 ++ multi_user/bl_types/bl_light.py | 2 ++ multi_user/bl_types/bl_lightprobe.py | 2 ++ multi_user/bl_types/bl_material.py | 2 ++ multi_user/bl_types/bl_mesh.py | 2 ++ multi_user/bl_types/bl_metaball.py | 2 ++ multi_user/bl_types/bl_node_group.py | 2 ++ multi_user/bl_types/bl_object.py | 2 ++ multi_user/bl_types/bl_particle.py | 2 ++ multi_user/bl_types/bl_speaker.py | 2 ++ multi_user/bl_types/bl_texture.py | 2 ++ multi_user/bl_types/bl_volume.py | 2 ++ multi_user/bl_types/bl_world.py | 2 ++ 17 files changed, 34 insertions(+) diff --git a/multi_user/bl_types/bl_action.py b/multi_user/bl_types/bl_action.py index 30dad1d..891b8b2 100644 --- a/multi_user/bl_types/bl_action.py +++ b/multi_user/bl_types/bl_action.py @@ -259,6 +259,8 @@ def resolve_animation_dependencies(datablock): class BlAction(ReplicatedDatablock): + use_delta = True + bl_id = "actions" bl_class = bpy.types.Action bl_check_common = False diff --git a/multi_user/bl_types/bl_armature.py b/multi_user/bl_types/bl_armature.py index 6eb02d1..845ebe8 100644 --- a/multi_user/bl_types/bl_armature.py +++ b/multi_user/bl_types/bl_armature.py @@ -37,6 +37,8 @@ def get_roll(bone: bpy.types.Bone) -> float: class BlArmature(ReplicatedDatablock): + use_delta = True + bl_id = "armatures" bl_class = bpy.types.Armature bl_check_common = False diff --git a/multi_user/bl_types/bl_camera.py b/multi_user/bl_types/bl_camera.py index 679684f..6265bbf 100644 --- a/multi_user/bl_types/bl_camera.py +++ b/multi_user/bl_types/bl_camera.py @@ -26,6 +26,8 @@ from .bl_action import dump_animation_data, load_animation_data, resolve_animati class BlCamera(ReplicatedDatablock): + use_delta = True + bl_id = "cameras" bl_class = bpy.types.Camera bl_check_common = False diff --git a/multi_user/bl_types/bl_curve.py b/multi_user/bl_types/bl_curve.py index 09deee6..ca25d3a 100644 --- a/multi_user/bl_types/bl_curve.py +++ b/multi_user/bl_types/bl_curve.py @@ -137,6 +137,8 @@ SPLINE_METADATA = [ class BlCurve(ReplicatedDatablock): + use_delta = True + bl_id = "curves" bl_class = bpy.types.Curve bl_check_common = False diff --git a/multi_user/bl_types/bl_lattice.py b/multi_user/bl_types/bl_lattice.py index 47c6d71..a7c67cb 100644 --- a/multi_user/bl_types/bl_lattice.py +++ b/multi_user/bl_types/bl_lattice.py @@ -29,6 +29,8 @@ POINT = ['co', 'weight_softbody', 'co_deform'] class BlLattice(ReplicatedDatablock): + use_delta = True + bl_id = "lattices" bl_class = bpy.types.Lattice bl_check_common = False diff --git a/multi_user/bl_types/bl_light.py b/multi_user/bl_types/bl_light.py index 568eb20..4873a65 100644 --- a/multi_user/bl_types/bl_light.py +++ b/multi_user/bl_types/bl_light.py @@ -26,6 +26,8 @@ from .bl_action import dump_animation_data, load_animation_data, resolve_animati class BlLight(ReplicatedDatablock): + use_delta = True + bl_id = "lights" bl_class = bpy.types.Light bl_check_common = False diff --git a/multi_user/bl_types/bl_lightprobe.py b/multi_user/bl_types/bl_lightprobe.py index 1d222a7..009a77a 100644 --- a/multi_user/bl_types/bl_lightprobe.py +++ b/multi_user/bl_types/bl_lightprobe.py @@ -25,6 +25,8 @@ from replication.protocol import ReplicatedDatablock from .bl_datablock import resolve_datablock_from_uuid class BlLightprobe(ReplicatedDatablock): + use_delta = True + bl_id = "lightprobes" bl_class = bpy.types.LightProbe bl_check_common = False diff --git a/multi_user/bl_types/bl_material.py b/multi_user/bl_types/bl_material.py index 0301941..0b5878f 100644 --- a/multi_user/bl_types/bl_material.py +++ b/multi_user/bl_types/bl_material.py @@ -397,6 +397,8 @@ def load_materials_slots(src_materials: list, dst_materials: bpy.types.bpy_prop_ class BlMaterial(ReplicatedDatablock): + use_delta = True + bl_id = "materials" bl_class = bpy.types.Material bl_check_common = False diff --git a/multi_user/bl_types/bl_mesh.py b/multi_user/bl_types/bl_mesh.py index 82aa206..2b7e31a 100644 --- a/multi_user/bl_types/bl_mesh.py +++ b/multi_user/bl_types/bl_mesh.py @@ -55,6 +55,8 @@ POLYGON = [ ] class BlMesh(ReplicatedDatablock): + use_delta = True + bl_id = "meshes" bl_class = bpy.types.Mesh bl_check_common = False diff --git a/multi_user/bl_types/bl_metaball.py b/multi_user/bl_types/bl_metaball.py index 54c6fce..b184246 100644 --- a/multi_user/bl_types/bl_metaball.py +++ b/multi_user/bl_types/bl_metaball.py @@ -65,6 +65,8 @@ def load_metaball_elements(elements_data, elements): class BlMetaball(ReplicatedDatablock): + use_delta = True + bl_id = "metaballs" bl_class = bpy.types.MetaBall bl_check_common = False diff --git a/multi_user/bl_types/bl_node_group.py b/multi_user/bl_types/bl_node_group.py index d6e6dd6..edbf6c3 100644 --- a/multi_user/bl_types/bl_node_group.py +++ b/multi_user/bl_types/bl_node_group.py @@ -28,6 +28,8 @@ from .bl_datablock import resolve_datablock_from_uuid from .bl_action import dump_animation_data, load_animation_data, resolve_animation_dependencies class BlNodeGroup(ReplicatedDatablock): + use_delta = True + bl_id = "node_groups" bl_class = bpy.types.NodeTree bl_check_common = False diff --git a/multi_user/bl_types/bl_object.py b/multi_user/bl_types/bl_object.py index ecc47d8..53a342d 100644 --- a/multi_user/bl_types/bl_object.py +++ b/multi_user/bl_types/bl_object.py @@ -493,6 +493,8 @@ def load_modifiers_custom_data(dumped_modifiers: dict, modifiers: bpy.types.bpy_ class BlObject(ReplicatedDatablock): + use_delta = True + bl_id = "objects" bl_class = bpy.types.Object bl_check_common = False diff --git a/multi_user/bl_types/bl_particle.py b/multi_user/bl_types/bl_particle.py index e7fdb35..fb696d0 100644 --- a/multi_user/bl_types/bl_particle.py +++ b/multi_user/bl_types/bl_particle.py @@ -41,6 +41,8 @@ IGNORED_ATTR = [ ] class BlParticle(ReplicatedDatablock): + use_delta = True + bl_id = "particles" bl_class = bpy.types.ParticleSettings bl_icon = "PARTICLES" diff --git a/multi_user/bl_types/bl_speaker.py b/multi_user/bl_types/bl_speaker.py index 81170b3..3722f86 100644 --- a/multi_user/bl_types/bl_speaker.py +++ b/multi_user/bl_types/bl_speaker.py @@ -25,6 +25,8 @@ from .bl_datablock import resolve_datablock_from_uuid from .bl_action import dump_animation_data, load_animation_data, resolve_animation_dependencies class BlSpeaker(ReplicatedDatablock): + use_delta = True + bl_id = "speakers" bl_class = bpy.types.Speaker bl_check_common = False diff --git a/multi_user/bl_types/bl_texture.py b/multi_user/bl_types/bl_texture.py index 0c40b88..2d83015 100644 --- a/multi_user/bl_types/bl_texture.py +++ b/multi_user/bl_types/bl_texture.py @@ -26,6 +26,8 @@ from .bl_action import dump_animation_data, load_animation_data, resolve_animati import bpy.types as T class BlTexture(ReplicatedDatablock): + use_delta = True + bl_id = "textures" bl_class = bpy.types.Texture bl_check_common = False diff --git a/multi_user/bl_types/bl_volume.py b/multi_user/bl_types/bl_volume.py index b96fb1d..9491da6 100644 --- a/multi_user/bl_types/bl_volume.py +++ b/multi_user/bl_types/bl_volume.py @@ -27,6 +27,8 @@ from .bl_material import dump_materials_slots, load_materials_slots from .bl_action import dump_animation_data, load_animation_data, resolve_animation_dependencies class BlVolume(ReplicatedDatablock): + use_delta = True + bl_id = "volumes" bl_class = bpy.types.Volume bl_check_common = False diff --git a/multi_user/bl_types/bl_world.py b/multi_user/bl_types/bl_world.py index 89ba01c..3d9fd9c 100644 --- a/multi_user/bl_types/bl_world.py +++ b/multi_user/bl_types/bl_world.py @@ -30,6 +30,8 @@ from .bl_action import dump_animation_data, load_animation_data, resolve_animati class BlWorld(ReplicatedDatablock): + use_delta = True + bl_id = "worlds" bl_class = bpy.types.World bl_check_common = True