From 88c22c9e8062c5dfea8ca642a1c11707a68cd6e4 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Thu, 11 Aug 2022 15:56:47 -0700 Subject: [PATCH] Bone names can now contain hyphens --- io_scene_psk_psa/__init__.py | 2 +- io_scene_psk_psa/helpers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/io_scene_psk_psa/__init__.py b/io_scene_psk_psa/__init__.py index cc28104..299c8f0 100644 --- a/io_scene_psk_psa/__init__.py +++ b/io_scene_psk_psa/__init__.py @@ -1,7 +1,7 @@ bl_info = { "name": "PSK/PSA Importer/Exporter", "author": "Colin Basnett, Yurii Ti", - "version": (4, 0, 0), + "version": (4, 0, 1), "blender": (2, 80, 0), # "location": "File > Export > PSK Export (.psk)", "description": "PSK/PSA Import/Export (.psk/.psa)", diff --git a/io_scene_psk_psa/helpers.py b/io_scene_psk_psa/helpers.py index 54c1b2c..b670712 100644 --- a/io_scene_psk_psa/helpers.py +++ b/io_scene_psk_psa/helpers.py @@ -94,7 +94,7 @@ def get_psa_sequence_name(action, should_use_original_sequence_name): def check_bone_names(bone_names: Iterable[str]): - pattern = re.compile(r'^[a-zA-Z0-9_ ]+$') + pattern = re.compile(r'^[a-zA-Z0-9_\- ]+$') invalid_bone_names = [x for x in bone_names if pattern.match(x) is None] if len(invalid_bone_names) > 0: raise RuntimeError(f'The following bone names are invalid: {invalid_bone_names}.\n'