custom cells fix

pull/5/head
“christopheseux” 2023-05-25 16:05:12 +02:00
parent 70e1def003
commit 9c509452bf
1 changed files with 2 additions and 1 deletions

View File

@ -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')