Commits

leslie_linden  committed bcaaa11

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

* Removed debug view post build step and moved initialization to first draw for proper setup.

  • Participants
  • Parent commits 39f9122

Comments (0)

Files changed (2)

File indra/newview/lldebugview.cpp

 	gTextureCategoryView = NULL;
 }
 
-BOOL LLDebugView::postBuild()
-{
-	mFloaterSnapRegion = getRootView()->getChildView("floater_snap_region");
-	
-	return TRUE;
-}
-
 void LLDebugView::init()
 {
 	LLRect r;
 
 void LLDebugView::draw()
 {
+	if (mFloaterSnapRegion == NULL)
+	{
+		mFloaterSnapRegion = getRootView()->getChildView("floater_snap_region");
+	}
+
 	LLRect debug_rect;
 	mFloaterSnapRegion->localRectToOtherView(mFloaterSnapRegion->getLocalRect(), &debug_rect, getParent());
 

File indra/newview/lldebugview.h

 	LLDebugView(const Params&);
 	~LLDebugView();
 
-	BOOL postBuild();
-	
 	void init();
 	void draw();