1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-29 00:36:40 +00:00

Fix sun glare persisting after changing to an interior cell

This commit is contained in:
scrawl 2013-05-18 23:10:37 +02:00
parent 4983d08fe4
commit c7805e7dd2

View file

@ -640,7 +640,7 @@ Ogre::SceneNode* SkyManager::getSunNode()
void SkyManager::setGlareEnabled (bool enabled)
{
if (!mCreated)
if (!mCreated || !mEnabled)
return;
mSunGlare->setVisible (mSunEnabled && enabled);
}