diff options
author | prep <prep@lindenlab.com> | 2012-06-19 15:55:22 -0400 |
---|---|---|
committer | prep <prep@lindenlab.com> | 2012-06-19 15:55:22 -0400 |
commit | c1c3b856fbc4e911436e93d76a7c7807afca7ca8 (patch) | |
tree | 6a87c396abed5e14f111709e15db3e44eddbf5a3 /indra/newview | |
parent | c839e769e8706d7a7cb1b031b0d9dda9d5224e48 (diff) |
Path-722: Fixed bug where navmesh rebake panel was being removed after navmesh debug window was closed. Minor code cleanup.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfloaterpathfindingconsole.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llpanelnavmeshrebake.cpp | 1 | ||||
-rw-r--r-- | indra/newview/llpanelnavmeshrebake.h | 3 |
3 files changed, 1 insertions, 5 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 7d3efb5454..89aba6654d 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 0f88c6f1d3..993ade89c9 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 4e2381b6d6..468081313e 100644 --- a/indra/newview/llpanelnavmeshrebake.h +++ b/indra/newview/llpanelnavmeshrebake.h @@ -51,7 +51,7 @@ public: /*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 @@ protected: private: static LLPanelNavMeshRebake* getPanel(); void onNavMeshRebakeClick(); - //void updatePosition(); LLButton* mNavMeshRebakeButton; LLButton* mNavMeshBakingButton; |