From cc829b66d120d98cc4041ea71fdd9dc7de4c6030 Mon Sep 17 00:00:00 2001 From: Swann Martinez Date: Mon, 7 Feb 2022 15:04:36 +0100 Subject: [PATCH] fix: skin loading related to #245 --- multi_user/bl_types/bl_object.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/multi_user/bl_types/bl_object.py b/multi_user/bl_types/bl_object.py index 37bb1c2..ebc85e1 100644 --- a/multi_user/bl_types/bl_object.py +++ b/multi_user/bl_types/bl_object.py @@ -609,6 +609,13 @@ class BlObject(ReplicatedDatablock): if datablock.data is None and img_uuid: datablock.data = get_datablock_from_uuid(img_uuid, None) + if hasattr(datablock, 'cycles_visibility') \ + and 'cycles_visibility' in data: + loader.load(datablock.cycles_visibility, data['cycles_visibility']) + + if hasattr(datablock, 'modifiers'): + load_modifiers(data['modifiers'], datablock.modifiers) + if hasattr(object_data, 'skin_vertices') \ and object_data.skin_vertices\ and 'skin_vertices' in data: @@ -618,13 +625,6 @@ class BlObject(ReplicatedDatablock): skin_data.data, SKIN_DATA) - if hasattr(datablock, 'cycles_visibility') \ - and 'cycles_visibility' in data: - loader.load(datablock.cycles_visibility, data['cycles_visibility']) - - if hasattr(datablock, 'modifiers'): - load_modifiers(data['modifiers'], datablock.modifiers) - constraints = data.get('constraints') if constraints: load_constraints(constraints, datablock.constraints)