From da23042db96482991cfccd6257ed98946dad1249 Mon Sep 17 00:00:00 2001 From: Simone Barbieri Date: Mon, 4 Oct 2021 12:32:40 +0100 Subject: [PATCH] Fix NoneType error when animationdata is missing for a rig --- openpype/hosts/blender/plugins/load/load_rig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openpype/hosts/blender/plugins/load/load_rig.py b/openpype/hosts/blender/plugins/load/load_rig.py index c385dc237e3..6062c293df2 100644 --- a/openpype/hosts/blender/plugins/load/load_rig.py +++ b/openpype/hosts/blender/plugins/load/load_rig.py @@ -111,7 +111,8 @@ def _process(self, libpath, asset_group, group_name, action): if action is not None: local_obj.animation_data.action = action - elif local_obj.animation_data.action is not None: + elif (local_obj.animation_data and + local_obj.animation_data.action is not None): plugin.prepare_data( local_obj.animation_data.action, group_name)