Cleanup & UI changes

This commit is contained in:
N00MKRAD
2021-04-04 12:21:58 +02:00
parent 7d98ef7345
commit 0dc9e0ba3c
2 changed files with 2 additions and 8 deletions

View File

@@ -123,16 +123,10 @@ namespace Flowframes.Main
if (Interpolate.canceled) return;
if (i >= frameFilesWithoutLast.Length) break;
// if (debug && i == startIndex)
// fileContent += $"# NEW THREAD - {startIndex} to {startIndex + count}\n";
string inputFilenameNoExt = Path.GetFileNameWithoutExtension(frameFilesWithoutLast[i].Name);
int dupesAmount = dupesDict.ContainsKey(inputFilenameNoExt) ? dupesDict[inputFilenameNoExt] : 0;
bool discardThisFrame = (sceneDetection && i < frameFilesWithoutLast.Length && sceneFrames.Contains(Path.GetFileNameWithoutExtension(FrameRename.importFilenames[i + 1]))); // i+2 is in scene detection folder, means i+1 is ugly interp frame
// if (loopEnabled && i == (frameFiles.Length - 2)) // If loop is enabled, account for the extra frame for loop continuity
// interpFramesAmount *= 2;
for (int frm = 0; frm < interpFramesAmount; frm++) // Generate frames file lines
{
if (discardThisFrame) // If frame is scene cut frame