mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-29 03:41:38 +00:00
Use applyDeferredPreviewRotationToPlayer
only after applying values from luaControls
. Otherwise camera rotation is not smooth when movement is controlled from lua.
This commit is contained in:
parent
f42badd7be
commit
3941c42a71
2 changed files with 1 additions and 2 deletions
|
@ -101,8 +101,6 @@ namespace MWInput
|
|||
mMouseManager->update(dt);
|
||||
mSensorManager->update(dt);
|
||||
mActionManager->update(dt, controllerMove);
|
||||
|
||||
MWBase::Environment::get().getWorld()->applyDeferredPreviewRotationToPlayer(dt);
|
||||
}
|
||||
|
||||
void InputManager::setDragDrop(bool dragDrop)
|
||||
|
|
|
@ -1598,6 +1598,7 @@ namespace MWMechanics
|
|||
|
||||
if (playerCharacter)
|
||||
{
|
||||
MWBase::Environment::get().getWorld()->applyDeferredPreviewRotationToPlayer(duration);
|
||||
playerCharacter->update(duration);
|
||||
playerCharacter->setVisibility(1.f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue