diff --git a/io_scene_psk_psa/psa/import_/properties.py b/io_scene_psk_psa/psa/import_/properties.py index 43dd375..d3acead 100644 --- a/io_scene_psk_psa/psa/import_/properties.py +++ b/io_scene_psk_psa/psa/import_/properties.py @@ -71,7 +71,8 @@ class PSA_PG_import(PropertyGroup): ('EXACT', 'Exact', 'Bone names must match exactly.', 'EXACT', 0), ('CASE_INSENSITIVE', 'Case Insensitive', 'Bones names must match, ignoring case (e.g., the bone PSA bone ' '\'root\' can be mapped to the armature bone \'Root\')', 'CASE_INSENSITIVE', 1), - ) + ), + default='CASE_INSENSITIVE' ) fps_source: EnumProperty(name='FPS Source', items=( ('SEQUENCE', 'Sequence', 'The sequence frame rate matches the original frame rate', 'ACTION', 0), diff --git a/io_scene_psk_psa/psa/importer.py b/io_scene_psk_psa/psa/importer.py index b70432b..630e3f6 100644 --- a/io_scene_psk_psa/psa/importer.py +++ b/io_scene_psk_psa/psa/importer.py @@ -98,7 +98,7 @@ def import_psa(context: Context, psa_reader: PsaReader, armature_object: Object, if armature_bone_index is not None: # Ensure that no other PSA bone has been mapped to this armature bone yet. if armature_bone_index not in armature_to_psa_bone_indices: - psa_to_armature_bone_indices[psa_bone_index] = armature_bone_names.index(psa_bone_name) + psa_to_armature_bone_indices[psa_bone_index] = armature_bone_index armature_to_psa_bone_indices[armature_bone_index] = psa_bone_index else: # This armature bone has already been mapped to a PSA bone.