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

Fixed a bug where PSA exports would not work

This commit is contained in:
Colin Basnett 2023-08-01 21:16:29 -07:00
parent 95d72c23aa
commit 972067860a
2 changed files with 5 additions and 5 deletions

View File

@ -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()

View File

@ -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)