diff --git a/operators/spreadsheet.py b/operators/spreadsheet.py index 46540b0..2f7619f 100644 --- a/operators/spreadsheet.py +++ b/operators/spreadsheet.py @@ -522,13 +522,14 @@ class VSETB_OT_export_spreadsheet(Operator): spreadsheet = project.spreadsheet_export episode = settings.active_episode - cells = [cell for cell in spreadsheet.cells if cell.enabled] rows = [] # Header if spreadsheet.use_custom_cells: + cells = [cell for cell in spreadsheet.cells if cell.enabled] rows.append([cell.export_name for cell in cells]) else: + cells = spreadsheet.cells rows.append([cell.name for cell in cells]) separator = spreadsheet.separator.replace('\\n', '\n').replace('\\t', '\t').replace('\\r', '\r')