mirror of
https://github.com/DarklightGames/io_scene_psk_psa.git
synced 2025-02-12 16:24: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:
parent
2e2b74edaf
commit
a95c9302c8
@ -54,7 +54,7 @@ class PsaBuilder(object):
|
|||||||
# Ensure that the exported hierarchy has a single root bone.
|
# Ensure that the exported hierarchy has a single root bone.
|
||||||
root_bones = [x for x in bones if x.parent is None]
|
root_bones = [x for x in bones if x.parent is None]
|
||||||
if len(root_bones) > 1:
|
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.'
|
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}')
|
f'The bone hierarchy marked for export has {len(root_bones)} root bones: {root_bone_names}')
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class PskBuilder(object):
|
|||||||
print('root bones')
|
print('root bones')
|
||||||
print(root_bones)
|
print(root_bones)
|
||||||
if len(root_bones) > 1:
|
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.'
|
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}')
|
f'The bone hierarchy marked for export has {len(root_bones)} root bones: {root_bone_names}')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user