diff --git a/Code/Main/Interpolate.cs b/Code/Main/Interpolate.cs index 299ae07..1575dba 100644 --- a/Code/Main/Interpolate.cs +++ b/Code/Main/Interpolate.cs @@ -128,7 +128,8 @@ namespace Flowframes else Dedupe.ClearCache(); - await Utils.CopyLastFrame(currentInputFrameCount); + if(!Config.GetBool("enableLoop")) + await Utils.CopyLastFrame(currentInputFrameCount); if (Config.GetInt("dedupMode") > 0) await Dedupe.CreateDupesFile(current.framesFolder, currentInputFrameCount); diff --git a/Code/Main/InterpolateUtils.cs b/Code/Main/InterpolateUtils.cs index 07f6f34..72ae054 100644 --- a/Code/Main/InterpolateUtils.cs +++ b/Code/Main/InterpolateUtils.cs @@ -73,7 +73,7 @@ namespace Flowframes.Main Program.mainForm.SetProgress(0); while (Program.busy) { - if (!progressPaused && AiProcess.processTime.IsRunning && !i.canceled && Directory.Exists(currentOutdir)) + if (!progressPaused && AiProcess.processTime.IsRunning && Directory.Exists(currentOutdir)) { if (firstProgUpd && Program.mainForm.IsInFocus()) Program.mainForm.SetTab("preview"); @@ -97,6 +97,8 @@ namespace Flowframes.Main public static void UpdateInterpProgress(int frames, int target, string latestFramePath = "") { + if (i.canceled) return; + frames = frames.Clamp(0, target); int percent = (int)Math.Round(((float)frames / target) * 100f); Program.mainForm.SetProgress(percent);