From a1b08b71ba76080cc59e8cdad9cbbadb374f55b7 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Wed, 23 Dec 2020 12:42:06 +0100 Subject: [PATCH] Fix error when scene detection is disabled --- Code/Main/InterpolateUtils.cs | 3 +++ 1 file changed, 3 insertions(+) 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();