1
0
mirror of https://github.com/DarklightGames/io_scene_psk_psa.git synced 2024-11-15 10:47:39 +01:00

Fixed a bug that would incorrectly include/exclude some bones on export

This commit is contained in:
Yurii Ti 2022-04-12 23:19:49 +03:00
parent 762e13ac38
commit d81f8286a1

View File

@ -58,8 +58,8 @@ class PsaBuilder(object):
pose_bones = [x[1] for x in pose_bones]
# Get a list of all the bone indices and instigator bones for the bone filter settings.
bone_names = get_export_bone_names(armature, options.bone_filter_mode, options.bone_group_indices)
bone_indices = [bone_names.index(x) for x in bone_names]
export_bone_names = get_export_bone_names(armature, options.bone_filter_mode, options.bone_group_indices)
bone_indices = [bone_names.index(x) for x in export_bone_names]
# Make the bone lists contain only the bones that are going to be exported.
bones = [bones[bone_index] for bone_index in bone_indices]