Fixed image sequence copy bugs

This commit is contained in:
N00MKRAD
2021-03-14 20:34:35 +01:00
parent abeb570f22
commit 7a379a6d68
2 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@ namespace Flowframes.Main
{
Program.mainForm.SetStatus("Copying output frames...");
string copyPath = Path.Combine(I.current.outPath, folderName);
Logger.Log($"Moving output frames to '{copyPath}'");
Logger.Log($"Moving output frames from {framesPath} to '{copyPath}'");
IOUtils.TryDeleteIfExists(copyPath);
IOUtils.CreateDir(copyPath);
Stopwatch sw = new Stopwatch();
@@ -83,7 +83,7 @@ namespace Flowframes.Main
for (int idx = 1; idx <= vfrLines.Length; idx++)
{
string line = vfrLines[idx-1];
string inFilename = line.Split('/').Last().Remove("'").RemoveComments();
string inFilename = line.RemoveComments().Split('/').Last().Remove("'").Trim();
string framePath = Path.Combine(framesPath, inFilename);
string outFilename = Path.Combine(copyPath, idx.ToString().PadLeft(Padding.interpFrames, '0')) + Path.GetExtension(framePath);

View File

@@ -138,8 +138,8 @@ namespace Flowframes.Main
if (Interpolate.canceled) return;
if (i >= frameFilesWithoutLast.Length) break;
if (debug && i == startIndex)
fileContent += $"# NEW THREAD - {startIndex} to {startIndex + count}\n";
// 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;