From af0b5a2f6e715dc13723d0b67ecbc5fd9ca371d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Garramu=C3=B1o?= Date: Tue, 10 Oct 2023 04:33:17 -0300 Subject: [PATCH] Made saving otio files also work from Fil/Save/Movies... --- mrv2/docs/HISTORY.md | 2 ++ mrv2/lib/mrvFl/mrvCallbacks.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/mrv2/docs/HISTORY.md b/mrv2/docs/HISTORY.md index 5ebc030aa..64b03276e 100644 --- a/mrv2/docs/HISTORY.md +++ b/mrv2/docs/HISTORY.md @@ -20,6 +20,8 @@ v0.8.0 present. - Fixed macOS menu bar font size when switching from macOS menus back to normal ones. +- Made saving of .otio files also work from File/Save/Movie or Sequence if the + extension given is .otio. v0.7.9 ====== diff --git a/mrv2/lib/mrvFl/mrvCallbacks.cpp b/mrv2/lib/mrvFl/mrvCallbacks.cpp index 654130951..e232aba55 100644 --- a/mrv2/lib/mrvFl/mrvCallbacks.cpp +++ b/mrv2/lib/mrvFl/mrvCallbacks.cpp @@ -312,6 +312,12 @@ namespace mrv return; } + if (extension == ".otio") + { + save_timeline_to_disk(file); + return; + } + bool valid_for_exr = false; // Sanity check - make sure the video pixel for the current // layerId type is float/half