Skip to content
Snippets Groups Projects
Commit c1c3b856 authored by prep's avatar prep
Browse files

Path-722: Fixed bug where navmesh rebake panel was being removed after navmesh...

Path-722: Fixed bug where navmesh rebake panel was being removed after navmesh debug window was closed. Minor code cleanup.
parent c839e769
No related branches found
No related tags found
No related merge requests found
...@@ -265,8 +265,6 @@ void LLFloaterPathfindingConsole::onClose(bool pIsAppQuitting) ...@@ -265,8 +265,6 @@ void LLFloaterPathfindingConsole::onClose(bool pIsAppQuitting)
setDefaultInputs(); setDefaultInputs();
setConsoleState(kConsoleStateUnknown); setConsoleState(kConsoleStateUnknown);
cleanupRenderableRestoreItems(); cleanupRenderableRestoreItems();
LLPanelNavMeshRebake* pPanelNavMeshRebake = LLPanelNavMeshRebake::getInstance();
if ( pPanelNavMeshRebake ) { pPanelNavMeshRebake->setVisible( FALSE ); }
LLFloater::onClose(pIsAppQuitting); LLFloater::onClose(pIsAppQuitting);
} }
......
...@@ -100,7 +100,6 @@ LLPanelNavMeshRebake* LLPanelNavMeshRebake::getPanel() ...@@ -100,7 +100,6 @@ LLPanelNavMeshRebake* LLPanelNavMeshRebake::getPanel()
LLPanelNavMeshRebake* panel = new LLPanelNavMeshRebake(); LLPanelNavMeshRebake* panel = new LLPanelNavMeshRebake();
panel->buildFromFile("panel_navmesh_rebake.xml"); panel->buildFromFile("panel_navmesh_rebake.xml");
panel->setVisible(FALSE); panel->setVisible(FALSE);
//panel->updatePosition();
return panel; return panel;
} }
......
...@@ -51,7 +51,7 @@ class LLPanelNavMeshRebake : public LLPanel ...@@ -51,7 +51,7 @@ class LLPanelNavMeshRebake : public LLPanel
/*virtual*/ void setVisible( BOOL visible ); /*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 ); /*virtual*/ BOOL handleToolTip( S32 x, S32 y, MASK mask );
protected: protected:
...@@ -61,7 +61,6 @@ class LLPanelNavMeshRebake : public LLPanel ...@@ -61,7 +61,6 @@ class LLPanelNavMeshRebake : public LLPanel
private: private:
static LLPanelNavMeshRebake* getPanel(); static LLPanelNavMeshRebake* getPanel();
void onNavMeshRebakeClick(); void onNavMeshRebakeClick();
//void updatePosition();
LLButton* mNavMeshRebakeButton; LLButton* mNavMeshRebakeButton;
LLButton* mNavMeshBakingButton; LLButton* mNavMeshBakingButton;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment