Fix sun glare persisting after changing to an interior cell

pull/16/head
scrawl 12 years ago
parent 4983d08fe4
commit c7805e7dd2

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

Loading…
Cancel
Save