Toggle chat_bars parent layout panel instead of the actual chat bar. Fixes layout stack collapse not working. Also, cache a few more things in LLOverlayBar (reduces per-frame setting lookups, etc). Also added debug rect drawing for layout_stack/layout_panel.

This commit is contained in:
Shyotl
2013-06-26 02:14:13 -05:00
parent 2793ca9e04
commit 84d76f437f
5 changed files with 57 additions and 69 deletions

View File

@@ -263,8 +263,8 @@ void LLLayoutStack::draw()
// only force drawing invisible children if visible amount is non-zero
drawChild(panelp, 0, 0, !clip_rect.isEmpty());
//if (sDebugRects)
/*{
if (sDebugRects)
{
LLUI::pushMatrix();
{
// drawing solids requires texturing be disabled
@@ -280,11 +280,11 @@ void LLLayoutStack::draw()
}
}
LLUI::popMatrix();
}*/
}
}
}
//if (sDebugRects)
/*{
if (sDebugRects)
{
drawDebugRect();
// Check for bogus rectangle
@@ -292,7 +292,7 @@ void LLLayoutStack::draw()
{
llwarns << "Bogus rectangle for " << getName() << " with " << getRect() << llendl;
}
}*/
}
}
void LLLayoutStack::removeChild(LLView* view)