From c1c3b856fbc4e911436e93d76a7c7807afca7ca8 Mon Sep 17 00:00:00 2001
From: prep <prep@lindenlab.com>
Date: Tue, 19 Jun 2012 15:55:22 -0400
Subject: [PATCH] Path-722: Fixed bug where navmesh rebake panel was being
 removed after navmesh debug window was closed. Minor code cleanup.

---
 indra/newview/llfloaterpathfindingconsole.cpp | 2 --
 indra/newview/llpanelnavmeshrebake.cpp        | 1 -
 indra/newview/llpanelnavmeshrebake.h          | 3 +--
 3 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp
index 7d3efb54546..89aba6654d4 100644
--- a/indra/newview/llfloaterpathfindingconsole.cpp
+++ b/indra/newview/llfloaterpathfindingconsole.cpp
@@ -265,8 +265,6 @@ void LLFloaterPathfindingConsole::onClose(bool pIsAppQuitting)
 	setDefaultInputs();
 	setConsoleState(kConsoleStateUnknown);
 	cleanupRenderableRestoreItems();
-	LLPanelNavMeshRebake* pPanelNavMeshRebake = LLPanelNavMeshRebake::getInstance();
-	if ( pPanelNavMeshRebake ) { pPanelNavMeshRebake->setVisible( FALSE ); }
 
 	LLFloater::onClose(pIsAppQuitting);
 }
diff --git a/indra/newview/llpanelnavmeshrebake.cpp b/indra/newview/llpanelnavmeshrebake.cpp
index 0f88c6f1d36..993ade89c98 100644
--- a/indra/newview/llpanelnavmeshrebake.cpp
+++ b/indra/newview/llpanelnavmeshrebake.cpp
@@ -100,7 +100,6 @@ LLPanelNavMeshRebake* LLPanelNavMeshRebake::getPanel()
 	LLPanelNavMeshRebake* panel = new LLPanelNavMeshRebake();
 	panel->buildFromFile("panel_navmesh_rebake.xml");
 	panel->setVisible(FALSE);
-	//panel->updatePosition();
 	return panel;
 }
 
diff --git a/indra/newview/llpanelnavmeshrebake.h b/indra/newview/llpanelnavmeshrebake.h
index 4e2381b6d64..468081313e4 100644
--- a/indra/newview/llpanelnavmeshrebake.h
+++ b/indra/newview/llpanelnavmeshrebake.h
@@ -51,7 +51,7 @@ class LLPanelNavMeshRebake : public LLPanel
 	/*virtual*/ void setVisible( BOOL visible );
 
 	
-	/*virtual*/ void draw(){/*updatePosition(); */LLPanel::draw();}
+	/*virtual*/ void draw(){ LLPanel::draw(); }
 	/*virtual*/ BOOL handleToolTip( S32 x, S32 y, MASK mask );
 
 protected:
@@ -61,7 +61,6 @@ class LLPanelNavMeshRebake : public LLPanel
 private:
 	static LLPanelNavMeshRebake* getPanel();
 	void onNavMeshRebakeClick();
-	//void updatePosition();
 
 	LLButton* mNavMeshRebakeButton;
 	LLButton* mNavMeshBakingButton;	
-- 
GitLab