1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Move RenderingManager::update call to World::update

There is no need to do that in Scene::update and pass paused argument there.
This commit is contained in:
elsid 2022-05-06 20:12:17 +02:00
parent 8473336b06
commit f03360b666
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40
3 changed files with 5 additions and 5 deletions

View File

@ -295,7 +295,7 @@ namespace MWWorld
mPhysics->updateScale(ptr);
}
void Scene::update (float duration, bool paused)
void Scene::update(float duration)
{
if (mChangeCellGridRequest.has_value())
{
@ -306,8 +306,6 @@ namespace MWWorld
mPreloader->updateCache(mRendering.getReferenceTime());
preloadCells(duration);
mRendering.update (duration, paused);
}
void Scene::unloadCell(CellStore* cell)

View File

@ -164,7 +164,7 @@ namespace MWWorld
void markCellAsUnchanged();
void update (float duration, bool paused);
void update(float duration);
void addObjectToScene (const Ptr& ptr);
///< Add an object that already exists in the world model to the scene.

View File

@ -1849,7 +1849,9 @@ namespace MWWorld
mPhysics->debugDraw();
mWorldScene->update (duration, paused);
mWorldScene->update(duration);
mRendering->update(duration, paused);
updateSoundListener();