Path-722: Fixed bug where navmesh rebake panel was being removed after navmesh debug window was closed. Minor code cleanup.
parent
c839e769e8
commit
c1c3b856fb
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,6 @@ LLPanelNavMeshRebake* LLPanelNavMeshRebake::getPanel()
|
|||
LLPanelNavMeshRebake* panel = new LLPanelNavMeshRebake();
|
||||
panel->buildFromFile("panel_navmesh_rebake.xml");
|
||||
panel->setVisible(FALSE);
|
||||
//panel->updatePosition();
|
||||
return panel;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue