From 3153be3cdfde92b65f201164ab2d497f18cdefbc Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Mon, 24 Nov 2025 15:17:42 -0800 Subject: [PATCH] Fix for error when exporting from Blender 5.0 `Action.fcurves` was removed. We now use `layers` to determine if there is data or not. --- io_scene_psk_psa/psa/export/operators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_scene_psk_psa/psa/export/operators.py b/io_scene_psk_psa/psa/export/operators.py index 3a50eee..342f41c 100644 --- a/io_scene_psk_psa/psa/export/operators.py +++ b/io_scene_psk_psa/psa/export/operators.py @@ -35,7 +35,7 @@ def get_sequences_propnames_from_source(sequence_source: str) -> Tuple[str, str] def is_action_for_object(obj: Object, action: Action): - if len(action.fcurves) == 0: + if len(action.layers) == 0: return False if obj is None or obj.animation_data is None or obj.type != 'ARMATURE': @@ -470,7 +470,7 @@ class PSA_OT_export(Operator, ExportHelper): match pg.sequence_source: case 'ACTIONS': for action_item in filter(lambda x: x.is_selected, pg.action_list): - if len(action_item.action.fcurves) == 0: + if len(action_item.action.layers) == 0: continue export_sequence = PsaBuildSequence(context.active_object, animation_data) export_sequence.name = action_item.name