mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-16 16:20:53 +00:00
Do not interrupt scripted animations by death animation (bug #4286)
This commit is contained in:
parent
d0619cfb35
commit
a42c663fd7
@ -728,6 +728,14 @@ void CharacterController::playRandomDeath(float startpoint)
|
||||
MWBase::Environment::get().getWorld()->useDeathCamera();
|
||||
}
|
||||
|
||||
// Do not interrupt scripted animation by death
|
||||
if (!mAnimQueue.empty())
|
||||
{
|
||||
AnimationQueueEntry& first = mAnimQueue.front();
|
||||
if (first.mPersist && isAnimPlaying(first.mGroup))
|
||||
return;
|
||||
}
|
||||
|
||||
if(mHitState == CharState_SwimKnockDown && mAnimation->hasAnimation("swimdeathknockdown"))
|
||||
{
|
||||
mDeathState = CharState_SwimDeathKnockDown;
|
||||
|
Loading…
x
Reference in New Issue
Block a user