mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 08:15:37 +00:00
Merge branch 'pushthefatman' into 'master'
Animation regression fixes See merge request OpenMW/openmw!4001
This commit is contained in:
commit
bdbbe34afc
1 changed files with 4 additions and 3 deletions
|
@ -2479,9 +2479,7 @@ namespace MWMechanics
|
|||
|
||||
movement.x() *= scale;
|
||||
movement.y() *= scale;
|
||||
// Update movement
|
||||
if (movement != osg::Vec3f())
|
||||
world->queueMovement(mPtr, movement);
|
||||
world->queueMovement(mPtr, movement);
|
||||
}
|
||||
|
||||
mSkipAnim = false;
|
||||
|
@ -2698,6 +2696,9 @@ namespace MWMechanics
|
|||
|
||||
bool CharacterController::isMovementAnimationControlled() const
|
||||
{
|
||||
if (mHitState != CharState_None)
|
||||
return true;
|
||||
|
||||
if (Settings::game().mPlayerMovementIgnoresAnimation && mPtr == getPlayer())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue