From 9ae573422b93d7ea73318928f653c6eeb3434ef1 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Wed, 16 Nov 2022 12:34:09 -0800 Subject: [PATCH] Fixed a bug where actions would not be considered to be "for" an armature if its only F-Curve data was for custom properties on a bone --- io_scene_psk_psa/psa/exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_psk_psa/psa/exporter.py b/io_scene_psk_psa/psa/exporter.py index ce2f085..23292a9 100644 --- a/io_scene_psk_psa/psa/exporter.py +++ b/io_scene_psk_psa/psa/exporter.py @@ -280,7 +280,7 @@ class PsaExportOperator(Operator, ExportHelper): return False bone_names = set([x.name for x in self.armature.data.bones]) for fcurve in action.fcurves: - match = re.match(r'pose\.bones\["(.+)"].\w+', fcurve.data_path) + match = re.match(r'pose\.bones\[\"([^\"]+)\"](\[\"([^\"]+)\"])?', fcurve.data_path) if not match: continue bone_name = match.group(1)