From 253566576e5830df2994e0cc4d91d3b9c37fc8eb Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Sat, 7 Jun 2025 19:19:54 -0700 Subject: [PATCH] Fix PSK export with no armatures while using `ARMATURE` export space --- io_scene_psk_psa/psk/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_psk_psa/psk/builder.py b/io_scene_psk_psa/psk/builder.py index fc55852..21417b7 100644 --- a/io_scene_psk_psa/psk/builder.py +++ b/io_scene_psk_psa/psk/builder.py @@ -193,7 +193,7 @@ def build_psk(context: Context, input_objects: PskInputObjects, options: PskBuil armature_mesh_export_space_matrices: Dict[Optional[Object], Matrix] = {None: Matrix.Identity(4)} if options.export_space == 'ARMATURE': # For meshes without an armature modifier, we need to set the export space to the armature object. - armature_mesh_export_space_matrices[None] = _get_mesh_export_space_matrix(list(input_objects.armature_objects)[0], options.export_space) + armature_mesh_export_space_matrices[None] = _get_mesh_export_space_matrix(next(iter(input_objects.armature_objects), None), options.export_space) for armature_object in armature_objects: armature_mesh_export_space_matrices[armature_object] = _get_mesh_export_space_matrix(armature_object, options.export_space)