mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:49:55 +00:00
Give scripted animations highest priority (bug #4286)
This commit is contained in:
parent
0c92655250
commit
0e441d48ac
2 changed files with 6 additions and 2 deletions
|
@ -1308,6 +1308,10 @@ bool CharacterController::updateWeaponState()
|
|||
}
|
||||
}
|
||||
|
||||
// Combat for actors with persistent animations obviously will be buggy
|
||||
if (isPersistentAnimPlaying())
|
||||
return forcestateupdate;
|
||||
|
||||
float complete;
|
||||
bool animPlaying;
|
||||
if(mAttackingOrSpell)
|
||||
|
@ -2186,7 +2190,7 @@ bool CharacterController::playGroup(const std::string &groupname, int mode, int
|
|||
|
||||
mIdleState = CharState_SpecialIdle;
|
||||
bool loopfallback = (entry.mGroup.compare(0,4,"idle") == 0);
|
||||
mAnimation->play(groupname, Priority_Default,
|
||||
mAnimation->play(groupname, persist ? Priority_Persistent : Priority_Default,
|
||||
MWRender::Animation::BlendMask_All, false, 1.0f,
|
||||
((mode==2) ? "loop start" : "start"), "stop", 0.0f, count-1, loopfallback);
|
||||
}
|
||||
|
|
|
@ -39,8 +39,8 @@ enum Priority {
|
|||
Priority_Knockdown,
|
||||
Priority_Torch,
|
||||
Priority_Storm,
|
||||
|
||||
Priority_Death,
|
||||
Priority_Persistent,
|
||||
|
||||
Num_Priorities
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue