mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
pause all animations
This commit is contained in:
parent
cadc753216
commit
b7aa7e4cef
@ -13,6 +13,7 @@
|
|||||||
#include <OgreCompositionTargetPass.h>
|
#include <OgreCompositionTargetPass.h>
|
||||||
#include <OgreCompositionPass.h>
|
#include <OgreCompositionPass.h>
|
||||||
#include <OgreHardwarePixelBuffer.h>
|
#include <OgreHardwarePixelBuffer.h>
|
||||||
|
#include <OgreControllerManager.h>
|
||||||
|
|
||||||
#include <extern/shiny/Main/Factory.hpp>
|
#include <extern/shiny/Main/Factory.hpp>
|
||||||
#include <extern/shiny/Platforms/Ogre/OgrePlatform.hpp>
|
#include <extern/shiny/Platforms/Ogre/OgrePlatform.hpp>
|
||||||
@ -331,8 +332,13 @@ void RenderingManager::update (float duration, bool paused)
|
|||||||
mOcclusionQuery->update(duration);
|
mOcclusionQuery->update(duration);
|
||||||
|
|
||||||
if(paused)
|
if(paused)
|
||||||
|
{
|
||||||
|
Ogre::ControllerManager::getSingleton().setTimeFactor(0.f);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
Ogre::ControllerManager::getSingleton().setTimeFactor(
|
||||||
|
MWBase::Environment::get().getWorld()->getTimeScaleFactor()/30.f);
|
||||||
|
|
||||||
mPlayer->update(duration);
|
mPlayer->update(duration);
|
||||||
|
|
||||||
mActors.update (duration);
|
mActors.update (duration);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user