Skip to content

Commit

Permalink
Bone names can now contain hyphens
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbasnett committed Aug 11, 2022
1 parent ffc0d99 commit 88c22c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion io_scene_psk_psa/__init__.py
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
2 changes: 1 addition & 1 deletion io_scene_psk_psa/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 88c22c9

Please sign in to comment.