Windlight floaters' isOpen() functions were always returning true after singleton was created, regardless of current visiblity status. Resulted in pointless syncMenu calls which are very expensive.

This commit is contained in:
Shyotl
2011-10-10 10:20:13 -05:00
parent a3aec92396
commit d73c6d84bf
4 changed files with 4 additions and 4 deletions

View File

@@ -288,7 +288,7 @@ bool LLFloaterDayCycle::isOpen()
{
if (sDayCycle != NULL)
{
return true;
return sDayCycle->getVisible();
}
return false;
}

View File

@@ -197,7 +197,7 @@ bool LLFloaterEnvSettings::isOpen()
{
if (sEnvSettings != NULL)
{
return true;
return sEnvSettings->getVisible();
}
return false;
}

View File

@@ -316,7 +316,7 @@ void LLFloaterWater::show()
bool LLFloaterWater::isOpen()
{
if (sWaterMenu != NULL) {
return true;
return sWaterMenu->getVisible();
}
return false;
}

View File

@@ -473,7 +473,7 @@ void LLFloaterWindLight::show()
bool LLFloaterWindLight::isOpen()
{
if (sWindLight != NULL) {
return true;
return sWindLight->getVisible();
}
return false;
}