mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +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
|
# Restore the actions
|
||||||
for obj in asset_group.children_recursive:
|
for obj in asset_group.children_recursive:
|
||||||
if obj.name in actions:
|
if obj.name in actions:
|
||||||
|
if not obj.animation_data:
|
||||||
|
obj.animation_data_create()
|
||||||
obj.animation_data.action = actions[obj.name]
|
obj.animation_data.action = actions[obj.name]
|
||||||
|
|
||||||
# Restore the old data, but reset memebers, as they don't exist anymore
|
# Restore the old data, but reset memebers, as they don't exist anymore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue