From 38713b787de4fc6fcc49e373bf5b750e003d674e Mon Sep 17 00:00:00 2001
From: Drake Arconis <drake@alchemyviewer.org>
Date: Sun, 3 Jan 2016 19:24:52 -0500
Subject: [PATCH] Hide pathfinding entries on non-secondlife

---
 indra/newview/skins/default/xui/en/menu_viewer.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/indra/newview/skins/default/xui/en/menu_viewer.xml b/indra/newview/skins/default/xui/en/menu_viewer.xml
index c13464a042..75cba35169 100755
--- a/indra/newview/skins/default/xui/en/menu_viewer.xml
+++ b/indra/newview/skins/default/xui/en/menu_viewer.xml
@@ -1013,6 +1013,9 @@
               parameter="pathfinding_linksets" />
           <menu_item_call.on_enable
               function="Tools.EnablePathfinding" />
+          <menu_item_call.on_visible
+              function="EnableGrid"
+              parameter="secondlife" />
         </menu_item_call> 
         <menu_item_separator/>
 
@@ -1171,6 +1174,9 @@
               parameter="pathfinding_linksets" />
           <menu_item_call.on_enable
               function="Tools.EnablePathfinding" />
+          <menu_item_call.on_visible
+              function="EnableGrid"
+              parameter="secondlife" />
         </menu_item_call>
         <menu_item_call
             label="Characters..."
@@ -1180,6 +1186,9 @@
               parameter="pathfinding_characters" />
           <menu_item_call.on_enable
               function="Tools.EnablePathfinding" />
+          <menu_item_call.on_visible
+              function="EnableGrid"
+              parameter="secondlife" />
         </menu_item_call>
         <menu_item_call
             label="Rebake region"
@@ -1188,6 +1197,9 @@
               function="Tools.DoPathfindingRebakeRegion"/>
           <menu_item_call.on_enable
               function="Tools.EnablePathfindingRebakeRegion" />
+          <menu_item_call.on_visible
+              function="EnableGrid"
+              parameter="secondlife" />
         </menu_item_call>
       </menu>
 
-- 
GitLab