mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-07-11 04:52:54 +02:00
Fixed image sequence copy bugs
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user