Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Blender: Fix NoneType error when animation_data is missing for a rig #2101

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion openpype/hosts/blender/plugins/load/load_rig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down