mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #6165 from ynput/bugfix/blender-fix_blend_update_missing_animation_data
Blender: Fix missing animation data when updating blend assets
This commit is contained in:
commit
a37f2948fd
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