fix: animation data attribute check
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user