fix: animation deletion synchronization

Related to #165
This commit is contained in:
Swann
2021-01-27 11:01:03 +01:00
parent cb90c196a5
commit b6449a7da2

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 target.animation_data:
target.animation_data_clear()
if self.is_library:
return