Check if visibility is different from current state for a floater

(Should gain some performance as this method is called dozend times per second during UI update)
meow-7.2.2
Ansariel 2011-07-05 21:56:35 +02:00
parent 6be0137a58
commit 191da2db43
1 changed files with 5 additions and 0 deletions

View File

@ -600,6 +600,11 @@ LLControlGroup* LLFloater::getControlGroup()
void LLFloater::setVisible( BOOL visible )
{
// Ansariel: This method is called everytime the UI updates.
// Why should we want to update visibility even
// if nothing has changed?
if (visible == LLPanel::getVisible()) return;
LLPanel::setVisible(visible); // calls handleVisibilityChange()
if( visible && mFirstLook )
{