Commits

Stinson Linden committed 64bbb53

MAINT-1737: Removing the visibility check from the rebake navmesh menu option because it is does work well in the case of the torn-off menu mode.

  • Participants
  • Parent commits 71accc4

Comments (0)

Files changed (2)

File indra/newview/llviewermenu.cpp

 	}
 };
 
-class LLToolsVisiblePathfindingRebakeRegion : public view_listener_t
-{
-	bool handleEvent(const LLSD& userdata)
-	{
-		bool returnValue = false;
-
-		if (LLPathfindingManager::getInstance() != NULL)
-		{
-			LLMenuOptionPathfindingRebakeNavmesh *rebakeInstance = LLMenuOptionPathfindingRebakeNavmesh::getInstance();
-			returnValue = (rebakeInstance->canRebakeRegion() &&
-				(rebakeInstance->getMode() != LLMenuOptionPathfindingRebakeNavmesh::kRebakeNavMesh_NotAvailable));
-		}
-		return returnValue;
-	}
-};
-
 // Round the position of all root objects to the grid
 class LLToolsSnapObjectXY : public view_listener_t
 {
 	view_listener_t::addMenu(new LLToolsEnablePathfindingView(), "Tools.EnablePathfindingView");
 	view_listener_t::addMenu(new LLToolsDoPathfindingRebakeRegion(), "Tools.DoPathfindingRebakeRegion");
 	view_listener_t::addMenu(new LLToolsEnablePathfindingRebakeRegion(), "Tools.EnablePathfindingRebakeRegion");
-	view_listener_t::addMenu(new LLToolsVisiblePathfindingRebakeRegion(), "Tools.VisiblePathfindingRebakeRegion");
 
 	// Help menu
 	// most items use the ShowFloater method

File indra/newview/skins/default/xui/en/menu_viewer.xml

               function="Tools.DoPathfindingRebakeRegion"/>
           <menu_item_call.on_enable
               function="Tools.EnablePathfindingRebakeRegion" />
-          <menu_item_call.on_visible
-              function="Tools.VisiblePathfindingRebakeRegion" />
         </menu_item_call>
       </menu>