diff --git a/io_scene_psk_psa/psk/export/operators.py b/io_scene_psk_psa/psk/export/operators.py index 3bbcf23..cbeeade 100644 --- a/io_scene_psk_psa/psk/export/operators.py +++ b/io_scene_psk_psa/psk/export/operators.py @@ -270,8 +270,8 @@ class PSK_OT_export_collection(Operator, ExportHelper, PskExportMixin): def execute(self, context): collection = bpy.data.collections.get(self.collection, None) - if collection is not None: - return {'CANCELLED'} + assert collection is not None + assert context.scene is not None try: input_objects = get_psk_input_objects_for_collection(collection)