From 172249dfff7315812900b1569487c1dc1802e67c Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Wed, 16 Apr 2025 16:53:25 -0700 Subject: [PATCH] Improved error reporting for multiple armature exports When exporting multiple armatures, the Export Space must be set to World Space. The user may not intended to be doing a multi-armature export, so the error message has been updated to list the armatures attempting to be exported. --- io_scene_psk_psa/shared/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io_scene_psk_psa/shared/helpers.py b/io_scene_psk_psa/shared/helpers.py index 49f0b07..e517a4e 100644 --- a/io_scene_psk_psa/shared/helpers.py +++ b/io_scene_psk_psa/shared/helpers.py @@ -307,7 +307,8 @@ def create_psx_bones( bones: List[Tuple[PsxBone, Optional[Object]]] = [] if export_space != 'WORLD' and len(armature_objects) > 1: - raise RuntimeError('When exporting multiple armatures, the Export Space must be World') + armature_object_names = [armature_object.name for armature_object in armature_objects] + raise RuntimeError(f'When exporting multiple armatures, the Export Space must be World. The following armatures are attempting to be exported: {armature_object_names}') coordinate_system_matrix = get_coordinate_system_transform(forward_axis, up_axis) coordinate_system_default_rotation = coordinate_system_matrix.to_quaternion()