From b332a13b4e543adc95c5f8b9b99a963c7d111d1a Mon Sep 17 00:00:00 2001 From: Allofich Date: Wed, 17 Aug 2016 22:48:55 +0900 Subject: [PATCH] Don't restart looped animations on repeated calls --- apps/openmw/mwmechanics/character.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index c92530259..711feb4a6 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -2009,6 +2009,9 @@ bool CharacterController::playGroup(const std::string &groupname, int mode, int } else { + if (!mAnimQueue.empty() && mAnimQueue.front().mGroup == groupname && isAnimPlaying(mAnimQueue.front().mGroup)) + return true; + count = std::max(count, 1); AnimationQueueEntry entry;