fix otio and refacto
This commit is contained in:
+6
-7
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user