From 9c509452bfcb695cbdb93614f8716c32a6eac2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cchristopheseux=E2=80=9D?= <“seuxchristophe@hotmail.fr”> Date: Thu, 25 May 2023 16:05:12 +0200 Subject: [PATCH] custom cells fix --- operators/spreadsheet.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')