Early out only when scripted animation is playing

0.6.3
Andrei Kortunov 7 years ago
parent e234dd2a36
commit 6099735c60

@ -565,7 +565,7 @@ void CharacterController::refreshCurrentAnims(CharacterState idle, CharacterStat
if (!mAnimQueue.empty()) if (!mAnimQueue.empty())
{ {
AnimationQueueEntry& first = mAnimQueue.front(); AnimationQueueEntry& first = mAnimQueue.front();
if (first.mPersist) if (first.mPersist && isAnimPlaying(first.mGroup))
return; return;
} }

Loading…
Cancel
Save