Skip to content
Snippets Groups Projects
Commit b5346c6b authored by Leslie Linden's avatar Leslie Linden
Browse files

SH-2726 FIX -- Texture Console and Debug Console inaccessable

* Removed debug view post build step and moved initialization to first draw for proper setup.
parent 9b46ed5f
No related branches found
No related tags found
No related merge requests found
...@@ -72,13 +72,6 @@ LLDebugView::~LLDebugView() ...@@ -72,13 +72,6 @@ LLDebugView::~LLDebugView()
gTextureCategoryView = NULL; gTextureCategoryView = NULL;
} }
BOOL LLDebugView::postBuild()
{
mFloaterSnapRegion = getRootView()->getChildView("floater_snap_region");
return TRUE;
}
void LLDebugView::init() void LLDebugView::init()
{ {
LLRect r; LLRect r;
...@@ -157,6 +150,11 @@ void LLDebugView::init() ...@@ -157,6 +150,11 @@ void LLDebugView::init()
void LLDebugView::draw() void LLDebugView::draw()
{ {
if (mFloaterSnapRegion == NULL)
{
mFloaterSnapRegion = getRootView()->getChildView("floater_snap_region");
}
LLRect debug_rect; LLRect debug_rect;
mFloaterSnapRegion->localRectToOtherView(mFloaterSnapRegion->getLocalRect(), &debug_rect, getParent()); mFloaterSnapRegion->localRectToOtherView(mFloaterSnapRegion->getLocalRect(), &debug_rect, getParent());
......
...@@ -55,8 +55,6 @@ class LLDebugView : public LLView ...@@ -55,8 +55,6 @@ class LLDebugView : public LLView
LLDebugView(const Params&); LLDebugView(const Params&);
~LLDebugView(); ~LLDebugView();
BOOL postBuild();
void init(); void init();
void draw(); void draw();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment