Path-722: Fixed bug where navmesh rebake panel was being removed after navmesh debug window was closed. Minor code cleanup.

master
prep 2012-06-19 15:55:22 -04:00
parent c839e769e8
commit c1c3b856fb
3 changed files with 1 additions and 5 deletions

View File

@ -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);
}

View File

@ -100,7 +100,6 @@ LLPanelNavMeshRebake* LLPanelNavMeshRebake::getPanel()
LLPanelNavMeshRebake* panel = new LLPanelNavMeshRebake();
panel->buildFromFile("panel_navmesh_rebake.xml");
panel->setVisible(FALSE);
//panel->updatePosition();
return panel;
}

View File

@ -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;