fix otio and refacto

This commit is contained in:
“christopheseux”
2023-05-04 11:32:36 +02:00
parent f9384c3d89
commit 706fcb2ee1
4 changed files with 25 additions and 17 deletions
+6 -7
View File
@@ -272,13 +272,12 @@ class VSETB_PT_metadata(VSETB_main, Panel):
if not project:
return
row = layout.row()
layout.prop(strip_settings, 'description', text='DESCRIPTION')
col = layout.column(align=True)
col.prop(strip_settings, 'description', text='DESCRIPTION')
#col = layout.column()
for metadata_type in project.metadata_types:
if metadata_type.entity_type == 'SHOT':
row = layout.row(align=False)
#row = layout.row(align=False)
metadata_key = metadata_type.field_name
metadata_label = metadata_key.upper()
@@ -291,11 +290,11 @@ class VSETB_PT_metadata(VSETB_main, Panel):
else:
icon = 'ADD'
row.prop_search(strip_settings.metadata, metadata_label, metadata_type, 'choices',
results_are_suggestions=True, icon=icon)
col.prop_search(strip_settings.metadata, metadata_key, metadata_type, 'choices',
results_are_suggestions=True, icon=icon, text=metadata_label)
else:
row.prop(strip_settings.metadata, metadata_key, text=metadata_label)
col.prop(strip_settings.metadata, metadata_key, text=metadata_label)
#row.operator('vse_toolbox.copy_metadata', icon='PASTEDOWN', text='', emboss=False).metadata = metadata_key