修复思考动画可能带来的卡顿

This commit is contained in:
ZouJin 2024-08-10 15:52:49 +08:00
parent a8e651b420
commit 8611899fc3

View File

@ -64,8 +64,12 @@ namespace VPet_Simulator.Windows.Interface
/// </summary>
public void DisplayThink()
{
if (MainPlugin.MW.Main.DisplayType.Name == "think")
return;
var think = MainPlugin.MW.Core.Graph.FindGraphs("think", AnimatType.B_Loop, MainPlugin.MW.Core.Save.Mode);
if (think.Count > 0)
var think2 = MainPlugin.MW.Core.Graph.FindGraphs("think", AnimatType.A_Start, MainPlugin.MW.Core.Save.Mode);
if (think.Count > 0 && think2.Count > 0)
{
MainPlugin.MW.Main.Display("think", AnimatType.A_Start, MainPlugin.MW.Main.DisplayBLoopingForce);
}