From 5548b66dc06eb2497523f5d8d041c3a53a4a1115 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 30 Jan 2018 01:07:24 +0000 Subject: a few more changes on inventory library and inv fetch --- OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ClientStack/Linden/Caps/FetchInventory2Module.cs') 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 // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public bool Enabled { get; private set; } + private bool m_enabledLib; private Scene m_scene; @@ -68,6 +69,8 @@ namespace OpenSim.Region.ClientStack.Linden if (m_fetchInventory2Url != string.Empty) Enabled = true; + if (m_fetchInventory2Url != string.Empty) + m_enabledLib = true; } public void AddRegion(Scene s) @@ -113,7 +116,8 @@ namespace OpenSim.Region.ClientStack.Linden private void RegisterCaps(UUID agentID, Caps caps) { RegisterFetchCap(agentID, caps, "FetchInventory2", m_fetchInventory2Url); - RegisterFetchLibCap(agentID, caps, "FetchLib2", m_fetchLib2Url); + if(m_enabledLib) + RegisterFetchLibCap(agentID, caps, "FetchLib2", m_fetchLib2Url); } private void RegisterFetchCap(UUID agentID, Caps caps, string capName, string url) -- cgit v1.1