Remove silly redundant code in LLFloater::draw
Thanks to Diva for pointing this out.
This commit is contained in:
@@ -1498,23 +1498,8 @@ void LLFloater::draw()
|
|||||||
}
|
}
|
||||||
else
|
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
|
// don't call LLPanel::draw() since we've implemented custom background rendering
|
||||||
LLView::draw();
|
LLView::draw();
|
||||||
|
|
||||||
if (focused_child_visible)
|
|
||||||
{
|
|
||||||
focused_child->setVisible(TRUE);
|
|
||||||
}
|
|
||||||
drawChild(focused_child);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( isBackgroundVisible() )
|
if( isBackgroundVisible() )
|
||||||
|
|||||||
Reference in New Issue
Block a user