forked from mirror/openmw-tes3mp
Don't restart looped animations on repeated calls
This commit is contained in:
parent
341e3846c0
commit
b332a13b4e
1 changed files with 3 additions and 0 deletions
|
@ -2009,6 +2009,9 @@ bool CharacterController::playGroup(const std::string &groupname, int mode, int
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (!mAnimQueue.empty() && mAnimQueue.front().mGroup == groupname && isAnimPlaying(mAnimQueue.front().mGroup))
|
||||||
|
return true;
|
||||||
|
|
||||||
count = std::max(count, 1);
|
count = std::max(count, 1);
|
||||||
|
|
||||||
AnimationQueueEntry entry;
|
AnimationQueueEntry entry;
|
||||||
|
|
Loading…
Reference in a new issue