From 972067860a6cdabecb10244905e918d5073ad554 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Tue, 1 Aug 2023 21:16:29 -0700 Subject: [PATCH] Fixed a bug where PSA exports would not work --- io_scene_psk_psa/psa/builder.py | 4 ++-- io_scene_psk_psa/psa/export/properties.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/io_scene_psk_psa/psa/builder.py b/io_scene_psk_psa/psa/builder.py index fcabebc..2a23ee9 100644 --- a/io_scene_psk_psa/psa/builder.py +++ b/io_scene_psk_psa/psa/builder.py @@ -85,9 +85,9 @@ def build_psa(context: bpy.types.Context, options: PsaBuildOptions) -> Psa: raise RuntimeError('No bones available for export') # Check that all bone names are valid. - if not options.should_ignore_bone_name_restrictions: + if options.should_enforce_bone_name_restrictions: check_bone_names(map(lambda bone: bone.name, bones)) - + # Build list of PSA bones. for bone in bones: psa_bone = Psa.Bone() diff --git a/io_scene_psk_psa/psa/export/properties.py b/io_scene_psk_psa/psa/export/properties.py index 2baa4fe..1f75f74 100644 --- a/io_scene_psk_psa/psa/export/properties.py +++ b/io_scene_psk_psa/psa/export/properties.py @@ -92,10 +92,10 @@ class PSA_PG_export(PropertyGroup): ) bone_group_list: CollectionProperty(type=PSX_PG_bone_group_list_item) bone_group_list_index: IntProperty(default=0, name='', description='') - should_ignore_bone_name_restrictions: BoolProperty( + should_enforce_bone_name_restrictions: BoolProperty( default=False, - name='Ignore Bone Name Restrictions', - description='Bone names restrictions will be ignored. Note that bone names without properly formatted names ' + name='Enforce Bone Name Restrictions', + description='Bone names restrictions will be enforced. Note that bone names without properly formatted names ' 'cannot be referenced in scripts' ) sequence_name_prefix: StringProperty(name='Prefix', options=empty_set)