From a8fc115b14db83cb7ba3fafe6500e223e894fd29 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Thu, 15 Jan 2026 17:38:05 -0800 Subject: [PATCH] Added better error handling when no meshes are in collection --- io_scene_psk_psa/psa/export/operators.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/io_scene_psk_psa/psa/export/operators.py b/io_scene_psk_psa/psa/export/operators.py index e7a5f86..6ad4d0f 100644 --- a/io_scene_psk_psa/psa/export/operators.py +++ b/io_scene_psk_psa/psa/export/operators.py @@ -289,7 +289,12 @@ class PSA_OT_export_collection(Operator, ExportHelper, PsaExportMixin): if collection is None: self.report({'ERROR'}, 'No collection found for export') return {'CANCELLED'} - import_objects = get_psk_input_objects_for_collection(collection) + + try: + import_objects = get_psk_input_objects_for_collection(collection) + except RuntimeError as e: + self.report({'ERROR_INVALID_CONTEXT'}, str(e)) + return {'CANCELLED'} options = create_psa_export_options(context, import_objects.armature_objects, self)