mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-07-10 04:21:49 +02:00
Fixed dupes.ini being empty because it relied on .png frames
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user