Fix anim slot from playing animations more than 1 time based on speed.
This commit is contained in:
@@ -2109,7 +2109,8 @@ void AnimGraphExecutor::ProcessGroupAnimation(Box* boxBase, Node* nodeBase, Valu
|
|||||||
bucket.LoopsLeft--;
|
bucket.LoopsLeft--;
|
||||||
bucket.LoopsDone++;
|
bucket.LoopsDone++;
|
||||||
}
|
}
|
||||||
value = SampleAnimation(node, loop, length, 0.0f, bucket.TimePosition, newTimePos, anim, slot.Speed);
|
// Speed is accounted for in the new time pos, so keep sample speed at 1
|
||||||
|
value = SampleAnimation(node, loop, length, 0.0f, bucket.TimePosition, newTimePos, anim, 1);
|
||||||
bucket.TimePosition = newTimePos;
|
bucket.TimePosition = newTimePos;
|
||||||
if (bucket.LoopsLeft == 0 && slot.BlendOutTime > 0.0f && length - slot.BlendOutTime < bucket.TimePosition)
|
if (bucket.LoopsLeft == 0 && slot.BlendOutTime > 0.0f && length - slot.BlendOutTime < bucket.TimePosition)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user