Fixed a bug where PSA exports would not work
This commit is contained in:
@@ -85,7 +85,7 @@ def build_psa(context: bpy.types.Context, options: PsaBuildOptions) -> Psa:
|
|||||||
raise RuntimeError('No bones available for export')
|
raise RuntimeError('No bones available for export')
|
||||||
|
|
||||||
# Check that all bone names are valid.
|
# 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))
|
check_bone_names(map(lambda bone: bone.name, bones))
|
||||||
|
|
||||||
# Build list of PSA bones.
|
# Build list of PSA bones.
|
||||||
|
|||||||
@@ -92,10 +92,10 @@ class PSA_PG_export(PropertyGroup):
|
|||||||
)
|
)
|
||||||
bone_group_list: CollectionProperty(type=PSX_PG_bone_group_list_item)
|
bone_group_list: CollectionProperty(type=PSX_PG_bone_group_list_item)
|
||||||
bone_group_list_index: IntProperty(default=0, name='', description='')
|
bone_group_list_index: IntProperty(default=0, name='', description='')
|
||||||
should_ignore_bone_name_restrictions: BoolProperty(
|
should_enforce_bone_name_restrictions: BoolProperty(
|
||||||
default=False,
|
default=False,
|
||||||
name='Ignore Bone Name Restrictions',
|
name='Enforce Bone Name Restrictions',
|
||||||
description='Bone names restrictions will be ignored. Note that bone names without properly formatted names '
|
description='Bone names restrictions will be enforced. Note that bone names without properly formatted names '
|
||||||
'cannot be referenced in scripts'
|
'cannot be referenced in scripts'
|
||||||
)
|
)
|
||||||
sequence_name_prefix: StringProperty(name='Prefix', options=empty_set)
|
sequence_name_prefix: StringProperty(name='Prefix', options=empty_set)
|
||||||
|
|||||||
Reference in New Issue
Block a user