From ff5ded004a366e7541d8a55a4683efcd5f6eb0a0 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Tue, 10 Dec 2024 02:52:25 -0800 Subject: [PATCH] Fix for error if any selected armatures had no actions or animation data when exporting PSAs --- io_scene_psk_psa/psa/export/operators.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/io_scene_psk_psa/psa/export/operators.py b/io_scene_psk_psa/psa/export/operators.py index 0be4db9..0988646 100644 --- a/io_scene_psk_psa/psa/export/operators.py +++ b/io_scene_psk_psa/psa/export/operators.py @@ -112,7 +112,9 @@ def update_actions_and_timeline_markers(context: Context): for armature_object in context.selected_objects: if armature_object.type != 'ARMATURE': continue - action = armature_object.animation_data.action + action = armature_object.animation_data.action if armature_object.animation_data else None + if action is None: + continue item = pg.active_action_list.add() item.name = action.name item.armature_object = armature_object