From 70e1def003bba117926ec69e4db911b77b0bbce6 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 14:20:37 +0200 Subject: [PATCH] export custom cells fix --- operators/spreadsheet.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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')