use task normed name

This commit is contained in:
2024-02-15 10:38:36 +01:00
parent 697ead9329
commit 688a06dffd
3 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -428,7 +428,7 @@ class VSETB_OT_import_spreadsheet(Operator):
elif cell_type == 'TASK_TYPE':
task_type = project.task_types[cell.import_name]
task = getattr(strip_settings.tasks, task_type.name)
task = getattr(strip_settings.tasks, norm_str(task_type.name))
task.comment = cell_value
if cell_type == 'ASSET_TYPE' and spreadsheet.import_casting:
@@ -605,7 +605,7 @@ class VSETB_OT_export_spreadsheet(Operator):
row += [separator.join(asset_castings)]
elif cell.type == 'TASK_TYPE':
row += [getattr(strip.vsetb_strip_settings.tasks, cell.name).comment]
row += [getattr(strip.vsetb_strip_settings.tasks, norm_str(cell.name)).comment]
elif cell.field_name == 'EPISODE':
row += [settings.active_episode.name]