修复动画问题

This commit is contained in:
ZouJin 2024-06-01 17:27:19 +08:00
parent 58e14022fe
commit d7ff2688d1
4 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ namespace VPet_Simulator.Core
Picture.LoadGraph(graph, path, info);
return;
}
var paths = p.GetFiles();
var paths = p.GetFiles("*.png");
bool isLoop = info[(gbol)"loop"];
PNGAnimation pa = new PNGAnimation(graph, path.FullName, paths, new GraphInfo(path, info), isLoop);
@ -159,7 +159,7 @@ namespace VPet_Simulator.Core
catch (Exception e)
{
IsFail = true;
FailMessage =$"--PNGAnimation--{GraphInfo}--\nPath: {path}\n{e.Message}";
FailMessage = $"--PNGAnimation--{GraphInfo}--\nPath: {path}\n{e.Message}";
}
finally
{