Merge branch '165-delete-animations-is-not-synced' into 'develop'

Resolve "Delete animations is not synced"

See merge request slumber/multi-user!97
This commit is contained in:
Swann Martinez 2021-01-27 10:12:48 +00:00
commit 26148e9934

View File

@ -203,6 +203,9 @@ class BlDatablock(ReplicatedDatablock):
if 'action' in data['animation_data']:
target.animation_data.action = bpy.data.actions[data['animation_data']['action']]
# Remove existing animation data if there is not more to load
elif hasattr(target, 'animation_data') and target.animation_data:
target.animation_data_clear()
if self.is_library:
return