From ac383a5de66e79aec84fb19a2a71ecd55b2ef224 Mon Sep 17 00:00:00 2001 From: Simone Barbieri Date: Thu, 25 Jan 2024 11:33:29 +0000 Subject: [PATCH] Fix missing animation data when updating blend assets --- openpype/hosts/blender/plugins/load/load_blend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openpype/hosts/blender/plugins/load/load_blend.py b/openpype/hosts/blender/plugins/load/load_blend.py index 4abe4a6afb..1a84f5afbb 100644 --- a/openpype/hosts/blender/plugins/load/load_blend.py +++ b/openpype/hosts/blender/plugins/load/load_blend.py @@ -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