Skip to content

Commit

Permalink
Merge branch 'pushthefatman' into 'master'
Browse files Browse the repository at this point in the history
Animation regression fixes

See merge request OpenMW/openmw!4001
  • Loading branch information
psi29a committed Apr 12, 2024
2 parents 2f9e071 + dfdd7aa commit bdbbe34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/openmw/mwmechanics/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -2698,6 +2696,9 @@ namespace MWMechanics

bool CharacterController::isMovementAnimationControlled() const
{
if (mHitState != CharState_None)
return true;

if (Settings::game().mPlayerMovementIgnoresAnimation && mPtr == getPlayer())
return false;

Expand Down

0 comments on commit bdbbe34

Please sign in to comment.