1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2025-02-07 22:41:26 +01:00

Fixed a bug where the error message that would warn about duplicate root bones would not list the correct bones.

This commit is contained in:
Colin Basnett 2022-02-02 02:18:14 -08:00
parent 2e2b74edaf
commit a95c9302c8
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ class PsaBuilder(object):
# Ensure that the exported hierarchy has a single root bone.
root_bones = [x for x in bones if x.parent is None]
if len(root_bones) > 1:
root_bone_names = [x.name for x in bones]
root_bone_names = [x.name for x in root_bones]
raise RuntimeError('Exported bone hierarchy must have a single root bone.'
f'The bone hierarchy marked for export has {len(root_bones)} root bones: {root_bone_names}')

View File

@ -91,7 +91,7 @@ class PskBuilder(object):
print('root bones')
print(root_bones)
if len(root_bones) > 1:
root_bone_names = [x.name for x in bones]
root_bone_names = [x.name for x in root_bones]
raise RuntimeError('Exported bone hierarchy must have a single root bone.'
f'The bone hierarchy marked for export has {len(root_bones)} root bones: {root_bone_names}')