From 762e13ac38e33863a5c3740fc8392d2515f3e692 Mon Sep 17 00:00:00 2001 From: Colin Basnett Date: Tue, 12 Apr 2022 11:25:18 -0700 Subject: [PATCH] Fixed an incorrect reference to the marker list --- io_scene_psk_psa/psa/exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_psk_psa/psa/exporter.py b/io_scene_psk_psa/psa/exporter.py index b53ed9d..9fd9736 100644 --- a/io_scene_psk_psa/psa/exporter.py +++ b/io_scene_psk_psa/psa/exporter.py @@ -239,7 +239,7 @@ class PsaExportOperator(Operator, ExportHelper): item = pg.marker_list.add() item.name = marker.name - if len(pg.action_list) == 0 and len(pg.marker_names) == 0: + if len(pg.action_list) == 0 and len(pg.marker_list) == 0: # If there are no actions at all, we have nothing to export, so just cancel the operation. self.report({'ERROR_INVALID_CONTEXT'}, 'There are no actions or timeline markers to export.') return {'CANCELLED'}