diff --git a/operators/spreadsheet.py b/operators/spreadsheet.py index b591a42..46540b0 100644 --- a/operators/spreadsheet.py +++ b/operators/spreadsheet.py @@ -526,7 +526,10 @@ class VSETB_OT_export_spreadsheet(Operator): rows = [] # Header - rows.append([cell.export_name for cell in cells]) + if spreadsheet.use_custom_cells: + rows.append([cell.export_name for cell in cells]) + else: + rows.append([cell.name for cell in cells]) separator = spreadsheet.separator.replace('\\n', '\n').replace('\\t', '\t').replace('\\r', '\r') delimiter = spreadsheet.delimiter.replace('\\n', '\n').replace('\\t', '\t').replace('\\r', '\r')