Merge branch '245-skin-modifier-vertex-radius-not-synchronized' into 'develop'

Resolve "skin modifier vertex radius not synchronized"

See merge request slumber/multi-user!165
This commit is contained in:
Swann Martinez 2022-02-07 14:08:22 +00:00
commit 2495b5b0e7

View File

@ -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)