mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Merge branch 'slaughteredslaughterfish' into 'master'
Avoid assigning idle animations to non-actors (bug #5371) Closes #5371 See merge request OpenMW/openmw!2048
This commit is contained in:
commit
e50c1dbcb1
@ -26,6 +26,7 @@
|
||||
Bug #5192: Actor turn rate is too slow
|
||||
Bug #5207: Loose summons can be present in scene
|
||||
Bug #5279: Ingame console stops auto-scrolling after clicking output
|
||||
Bug #5371: 'Dead' slaughterfish added by mod are animated/alive
|
||||
Bug #5377: Console does not appear after using menutest in inventory
|
||||
Bug #5379: Wandering NPCs falling through cantons
|
||||
Bug #5394: Windows snapping no longer works
|
||||
|
@ -880,12 +880,10 @@ CharacterController::CharacterController(const MWWorld::Ptr &ptr, MWRender::Anim
|
||||
{
|
||||
/* Don't accumulate with non-actors. */
|
||||
mAnimation->setAccumulation(osg::Vec3f(0.f, 0.f, 0.f));
|
||||
|
||||
mIdleState = CharState_Idle;
|
||||
}
|
||||
|
||||
// Do not update animation status for dead actors
|
||||
if(mDeathState == CharState_None && (!cls.isActor() || !cls.getCreatureStats(mPtr).isDead()))
|
||||
// Update animation status for living actors
|
||||
if (mDeathState == CharState_None && cls.isActor() && !cls.getCreatureStats(mPtr).isDead())
|
||||
refreshCurrentAnims(mIdleState, mMovementState, mJumpState, true);
|
||||
|
||||
mAnimation->runAnimation(0.f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user