diff --git a/operators/spreadsheet.py b/operators/spreadsheet.py index f365b78..8cac2ca 100644 --- a/operators/spreadsheet.py +++ b/operators/spreadsheet.py @@ -164,7 +164,7 @@ class VSETB_OT_spreadsheet_from_clipboard(Operator): cell.import_name = max(cell_types.keys(), key=lambda x: fuzzy_match(cell_name, x)) cell.enabled = True - project.spreadsheet_import.use_custom_cells = True + project.spreadsheet_import.use_custom_cellss = True SPREADSHEET.extend(rows) @@ -198,7 +198,7 @@ class VSETB_OT_spreadsheet_to_clipboard(Operator): cell.import_name = max(cell_types.keys(), key=lambda x: fuzzy_match(cell_name, x)) cell.enabled = True - project.spreadsheet_import.use_custom_cells = True + project.spreadsheet_import.use_custom_cellss = True SPREADSHEET.extend(rows) @@ -440,10 +440,10 @@ class VSETB_OT_export_spreadsheet(Operator): layout = self.layout row = layout.row(align=True) - row.prop(spreadsheet, 'use_custom_cells', text='Custom Cells') + row.prop(spreadsheet, 'use_custom_cellss', text='Custom Cells') col = layout.column(align=False) - col.enabled = spreadsheet.use_custom_cells + col.enabled = spreadsheet.use_custom_cellss row = col.row(align=True, heading='Custom Asset Name') row.use_property_split = True @@ -520,7 +520,7 @@ class VSETB_OT_export_spreadsheet(Operator): if not asset.asset_type == cell.name: continue - if spreadsheet.use_custom_name: + if spreadsheet.use_custom_name and spreadsheet.use_custom_cells: if asset.get('metadata', {}).get(spreadsheet.custom_name): asset_castings.append(asset['metadata'][spreadsheet.custom_name]) else: