aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs
diff options
context:
space:
mode:
authorUbitUmarov2018-01-30 01:07:24 +0000
committerUbitUmarov2018-01-30 01:07:24 +0000
commit5548b66dc06eb2497523f5d8d041c3a53a4a1115 (patch)
tree93d62703dbb201ebfbc73e30894a4d8f669bec87 /OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs
parenta few more changes on inventory library and inv fetch (diff)
downloadopensim-SC-5548b66dc06eb2497523f5d8d041c3a53a4a1115.zip
opensim-SC-5548b66dc06eb2497523f5d8d041c3a53a4a1115.tar.gz
opensim-SC-5548b66dc06eb2497523f5d8d041c3a53a4a1115.tar.bz2
opensim-SC-5548b66dc06eb2497523f5d8d041c3a53a4a1115.tar.xz
a few more changes on inventory library and inv fetch
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs b/OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs
index c5cad8e..0ea4bdb 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs
@@ -47,6 +47,7 @@ namespace OpenSim.Region.ClientStack.Linden
47// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 47// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 48
49 public bool Enabled { get; private set; } 49 public bool Enabled { get; private set; }
50 private bool m_enabledLib;
50 51
51 private Scene m_scene; 52 private Scene m_scene;
52 53
@@ -68,6 +69,8 @@ namespace OpenSim.Region.ClientStack.Linden
68 69
69 if (m_fetchInventory2Url != string.Empty) 70 if (m_fetchInventory2Url != string.Empty)
70 Enabled = true; 71 Enabled = true;
72 if (m_fetchInventory2Url != string.Empty)
73 m_enabledLib = true;
71 } 74 }
72 75
73 public void AddRegion(Scene s) 76 public void AddRegion(Scene s)
@@ -113,7 +116,8 @@ namespace OpenSim.Region.ClientStack.Linden
113 private void RegisterCaps(UUID agentID, Caps caps) 116 private void RegisterCaps(UUID agentID, Caps caps)
114 { 117 {
115 RegisterFetchCap(agentID, caps, "FetchInventory2", m_fetchInventory2Url); 118 RegisterFetchCap(agentID, caps, "FetchInventory2", m_fetchInventory2Url);
116 RegisterFetchLibCap(agentID, caps, "FetchLib2", m_fetchLib2Url); 119 if(m_enabledLib)
120 RegisterFetchLibCap(agentID, caps, "FetchLib2", m_fetchLib2Url);
117 } 121 }
118 122
119 private void RegisterFetchCap(UUID agentID, Caps caps, string capName, string url) 123 private void RegisterFetchCap(UUID agentID, Caps caps, string capName, string url)