diff options
author | Leslie Linden <leslie@lindenlab.com> | 2011-12-01 15:46:39 -0800 |
---|---|---|
committer | Leslie Linden <leslie@lindenlab.com> | 2011-12-01 15:46:39 -0800 |
commit | b5346c6b64ce955ed71ddc6f64bc7a864111a8e4 (patch) | |
tree | efe43e7905604711a95b456ee5006d4ddd90d414 /indra/newview | |
parent | 9b46ed5f812b2a3bd5e5f0282011556d5dfa147a (diff) |
SH-2726 FIX -- Texture Console and Debug Console inaccessable
* Removed debug view post build step and moved initialization to first draw for proper setup.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/lldebugview.cpp | 12 | ||||
-rw-r--r-- | indra/newview/lldebugview.h | 2 |
2 files changed, 5 insertions, 9 deletions
diff --git a/indra/newview/lldebugview.cpp b/indra/newview/lldebugview.cpp index 92ac336d0d..7d3170cb76 100644 --- a/indra/newview/lldebugview.cpp +++ b/indra/newview/lldebugview.cpp @@ -72,13 +72,6 @@ LLDebugView::~LLDebugView() gTextureCategoryView = NULL; } -BOOL LLDebugView::postBuild() -{ - mFloaterSnapRegion = getRootView()->getChildView("floater_snap_region"); - - return TRUE; -} - void LLDebugView::init() { LLRect r; @@ -157,6 +150,11 @@ void LLDebugView::init() void LLDebugView::draw() { + if (mFloaterSnapRegion == NULL) + { + mFloaterSnapRegion = getRootView()->getChildView("floater_snap_region"); + } + LLRect debug_rect; mFloaterSnapRegion->localRectToOtherView(mFloaterSnapRegion->getLocalRect(), &debug_rect, getParent()); diff --git a/indra/newview/lldebugview.h b/indra/newview/lldebugview.h index 33d6a7394f..5aec77ad62 100644 --- a/indra/newview/lldebugview.h +++ b/indra/newview/lldebugview.h @@ -55,8 +55,6 @@ public: LLDebugView(const Params&); ~LLDebugView(); - BOOL postBuild(); - void init(); void draw(); |