otio: added ability to export a whole project rather than a single sequence

This commit is contained in:
itsmattkc
2020-10-20 18:15:39 +11:00
parent db8d321fa7
commit 0ec262125c
3 changed files with 76 additions and 23 deletions
+3 -3
View File
@@ -273,9 +273,9 @@ void Core::CreateNewProject()
#ifdef USE_OTIO
void Core::ExportActiveSequenceAsOTIO()
{
ViewerOutput* sequence = GetSequenceToExport();
ProjectPtr project = GetActiveProject();
if (sequence) {
if (project) {
QString fn = QFileDialog::getSaveFileName(main_window_,
tr("Export as OpenTimelineIO"),
QString(),
@@ -284,7 +284,7 @@ void Core::ExportActiveSequenceAsOTIO()
if (!fn.isEmpty()) {
fn = FileFunctions::EnsureFilenameExtension(fn, QStringLiteral("otio"));
ExportOTIOTask* task = new ExportOTIOTask(sequence, fn);
ExportOTIOTask* task = new ExportOTIOTask(project, fn);
TaskDialog* dialog = new TaskDialog(task, tr("Export Sequence"), main_window_);
dialog->open();
}