mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix missing animation data when updating blend assets
This commit is contained in:
parent
d5643d2e9b
commit
ac383a5de6
1 changed files with 2 additions and 0 deletions
|
|
@ -220,6 +220,8 @@ class BlendLoader(plugin.AssetLoader):
|
|||
# Restore the actions
|
||||
for obj in asset_group.children_recursive:
|
||||
if obj.name in actions:
|
||||
if not obj.animation_data:
|
||||
obj.animation_data_create()
|
||||
obj.animation_data.action = actions[obj.name]
|
||||
|
||||
# Restore the old data, but reset memebers, as they don't exist anymore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue