Fixed dupes.ini being empty because it relied on .png frames

This commit is contained in:
N00MKRAD
2021-05-05 15:23:05 +02:00
parent dc909d62c1
commit 470fd88cc5
2 changed files with 3 additions and 3 deletions

View File

@@ -205,12 +205,12 @@ namespace Flowframes.Magick
return bufferSize;
}
public static async Task CreateDupesFile (string framesPath, int lastFrameNum)
public static async Task CreateDupesFile (string framesPath, int lastFrameNum, string ext)
{
string infoFile = Path.Combine(framesPath.GetParentDir(), "dupes.ini");
string fileContent = "";
FileInfo[] frameFiles = IOUtils.GetFileInfosSorted(framesPath, false, "*.png");
FileInfo[] frameFiles = IOUtils.GetFileInfosSorted(framesPath, false, $"*{ext}");
for(int i = 0; i < frameFiles.Length; i++)
{

View File

@@ -181,7 +181,7 @@ namespace Flowframes
public static async Task RunAi(string outpath, AI ai, bool stepByStep = false)
{
if (canceled) return;
await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount);
await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount, current.framesExt);
await FrameRename.Rename();
await FrameOrder.CreateFrameOrderFile(current.framesFolder, Config.GetBool("enableLoop"), current.interpFactor);