Fixed batch processing FPS loading not working correctly

This commit is contained in:
N00MKRAD
2020-12-03 22:06:58 +01:00
parent 896e656e03
commit 8c8731b99b
2 changed files with 11 additions and 12 deletions

View File

@@ -153,11 +153,12 @@ namespace Flowframes
public void runBtn_Click(object sender, EventArgs e)
{
SetTab("interpolate");
if (!BatchProcessing.busy)
if (!BatchProcessing.busy) // Don't load values from gui if batch processing is used
{
SetTab("interpolation");
Interpolate.SetFps(fpsInTbox.GetFloat());
Interpolate.interpFactor = interpFactorCombox.GetInt();
}
string inPath = inputTbox.Text.Trim();
string outPath = outputTbox.Text.Trim();
Interpolate.Start(inPath, outPath, GetTilesize(), GetOutMode(), GetAi());

View File

@@ -132,13 +132,11 @@ namespace Flowframes.Main
ShowMessage("Invalid target frame rate - Must be 1-500.");
passes = false;
}
if (tilesize % 32 != 0 || tilesize < 128)
{
ShowMessage("Tile size is not valid - Must be a multiple of 32 and at least 128!");
passes = false;
}
if (!passes)
i.Cancel("Invalid settings detected.");
return passes;