Remove silly redundant code in LLFloater::draw

Thanks to Diva for pointing this out.
This commit is contained in:
Lirusaito
2014-11-23 18:50:59 -05:00
parent 19cae9b59b
commit 4387118d55

View File

@@ -1498,23 +1498,8 @@ void LLFloater::draw()
}
else
{
// draw children
LLView* focused_child = dynamic_cast<LLView*>(gFocusMgr.getKeyboardFocus());
BOOL focused_child_visible = FALSE;
if (focused_child && focused_child->getParent() == this)
{
focused_child_visible = focused_child->getVisible();
focused_child->setVisible(FALSE);
}
// don't call LLPanel::draw() since we've implemented custom background rendering
LLView::draw();
if (focused_child_visible)
{
focused_child->setVisible(TRUE);
}
drawChild(focused_child);
}
if( isBackgroundVisible() )