diff --git a/Code/Main/InterpolateUtils.cs b/Code/Main/InterpolateUtils.cs index 56490a6..c73b06d 100644 --- a/Code/Main/InterpolateUtils.cs +++ b/Code/Main/InterpolateUtils.cs @@ -319,6 +319,9 @@ namespace Flowframes.Main public static void FixConsecutiveSceneFrames (string sceneFramesPath, string sourceFramesPath) { + if (!Directory.Exists(sceneFramesPath) || IOUtils.GetAmountOfFiles(sceneFramesPath, false) < 1) + return; + List sceneFrames = IOUtils.GetFilesSorted(sceneFramesPath).Select(x => Path.GetFileNameWithoutExtension(x)).ToList(); List sourceFrames = IOUtils.GetFilesSorted(sourceFramesPath).Select(x => Path.GetFileNameWithoutExtension(x)).ToList(); List sceneFramesToDelete = new List();