mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-14 06:40:40 +00:00
Merge branch 'pushthefatman' into 'master'
Animation regression fixes See merge request OpenMW/openmw!4001
This commit is contained in:
commit
bdbbe34afc
@ -2479,8 +2479,6 @@ namespace MWMechanics
|
|||||||
|
|
||||||
movement.x() *= scale;
|
movement.x() *= scale;
|
||||||
movement.y() *= scale;
|
movement.y() *= scale;
|
||||||
// Update movement
|
|
||||||
if (movement != osg::Vec3f())
|
|
||||||
world->queueMovement(mPtr, movement);
|
world->queueMovement(mPtr, movement);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2698,6 +2696,9 @@ namespace MWMechanics
|
|||||||
|
|
||||||
bool CharacterController::isMovementAnimationControlled() const
|
bool CharacterController::isMovementAnimationControlled() const
|
||||||
{
|
{
|
||||||
|
if (mHitState != CharState_None)
|
||||||
|
return true;
|
||||||
|
|
||||||
if (Settings::game().mPlayerMovementIgnoresAnimation && mPtr == getPlayer())
|
if (Settings::game().mPlayerMovementIgnoresAnimation && mPtr == getPlayer())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user