Skip to content
Snippets Groups Projects
Commit 1ceed65d authored by Jan-Nikjas Hartmann's avatar Jan-Nikjas Hartmann
Browse files

Fixed a minor bug in the custom idle animation execution (and typos)

parent 99be54ce
No related branches found
No related tags found
No related merge requests found
......@@ -298,8 +298,8 @@ void AVirtualHuman::PlayRandomIdleAnimation()
{
float BlendTime = 0.25f;
UAnimMontage* DynamicMontage = GetBodyAnimInstance()->PlaySlotAnimationAsDynamicMontage(IdleAnim, "CustomIdleSlot", BlendTime, BlendTime);
// start timer for next random pick (make it a bit shorter to allow for blending
GetWorld()->GetTimerManager().SetTimer(NextIdleTimerHandle, this, &AVirtualHuman::PlayRandomIdleAnimation, DynamicMontage->GetPlayLength()- 2.0*BlendTime, false);
// start timer for next random pick (make it a bit shorter to allow for blending)
GetWorld()->GetTimerManager().SetTimer(NextIdleTimerHandle, this, &AVirtualHuman::PlayRandomIdleAnimation, DynamicMontage->GetPlayLength()- 1.0*BlendTime, false);
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment