修复联机坐下动画或侧躺动画限时错误 #353

This commit is contained in:
ZouJin 2024-04-15 14:16:25 +08:00
parent b4a8ab915e
commit c255cc1ca1

View File

@ -11,6 +11,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input; using System.Windows.Input;
using System.Windows.Media; using System.Windows.Media;
using System.Windows.Threading; using System.Windows.Threading;
@ -685,10 +686,10 @@ public partial class MPFriends : WindowX, IMPFriend
if (gi.Type != GraphType.Common) if (gi.Type != GraphType.Common)
return false; return false;
} }
var img = Core.Graph.FindGraph(gi.Name, gi.Animat, Core.Save.Mode); var img = Core.Graph.FindGraphs(gi.Name, gi.Animat, Core.Save.Mode).FindAll(x => x.GraphInfo.Type == gi.Type);
if (img != null) if (img.Count != 0)
{ {
Main.Display(img, () => DisplayAuto(gi)); Main.Display(img[Function.Rnd.Next(img.Count)], () => DisplayAuto(gi));
return true; return true;
} }
return false; return false;