From d81f8286a12fc96c946c4f3b8226170aca091813 Mon Sep 17 00:00:00 2001 From: Yurii Ti Date: Tue, 12 Apr 2022 23:19:49 +0300 Subject: [PATCH] Fixed a bug that would incorrectly include/exclude some bones on export --- io_scene_psk_psa/psa/builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_scene_psk_psa/psa/builder.py b/io_scene_psk_psa/psa/builder.py index 983bdf8..aff1e98 100644 --- a/io_scene_psk_psa/psa/builder.py +++ b/io_scene_psk_psa/psa/builder.py @@ -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]