use bucket index instead of anim for check.

This commit is contained in:
Chandler Cox
2024-08-09 10:47:52 -05:00
parent 830db22dcc
commit a599615c1a

View File

@@ -2294,8 +2294,11 @@ void AnimGraphExecutor::ProcessGroupAnimation(Box* boxBase, Node* nodeBase, Valu
Animation* sAnim = nullptr;
for (int32 i = 0; i < slots.Count(); i++)
{
if (bucket.Index == i)
continue;
auto& s = slots[i];
if (s.Animation && s.Name == slotName && s.Animation != slot.Animation)
if (s.Animation && s.Name == slotName)
{
sAnim = s.Animation;
}