fix: animation data attribute check

This commit is contained in:
Swann
2021-01-27 11:06:46 +01:00
parent b6449a7da2
commit 0a7be03c6f
+1 -1
View File
@@ -204,7 +204,7 @@ 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:
elif hasattr(target, 'animation_data') and target.animation_data:
target.animation_data_clear()
if self.is_library: