diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index 9005cff86d..3e1a885a0a 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs @@ -230,7 +230,12 @@ namespace OpenSim.Framework.Communications try { - inventData = GetInventorySkeleton(agentID, ""); + string inventoryServerUrl = ""; + if (!String.IsNullOrEmpty(userProfile.UserInventoryURI)) + { + inventoryServerUrl = userProfile.UserInventoryURI; + } + inventData = GetInventorySkeleton(agentID, inventoryServerUrl); } catch (Exception e) { @@ -386,7 +391,14 @@ namespace OpenSim.Framework.Communications LLUUID agentID = userProfile.ID; // Inventory Library Section - InventoryData inventData = GetInventorySkeleton(agentID, ""); + + string inventoryServerUrl = ""; + if (!String.IsNullOrEmpty(userProfile.UserInventoryURI)) + { + inventoryServerUrl = userProfile.UserInventoryURI; + } + + InventoryData inventData = GetInventorySkeleton(agentID, inventoryServerUrl); ArrayList AgentInventoryArray = inventData.InventoryArray; Hashtable InventoryRootHash = new Hashtable(); diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index 7c41b2ec1a..9b2600fe15 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs @@ -422,10 +422,10 @@ namespace OpenSim.Grid.UserServer protected override InventoryData GetInventorySkeleton(LLUUID userID, string serverUrl) { string invUrl = m_config.InventoryUrl; - //if (serverUrl != String.Empty) - //{ - // invUrl = serverUrl+"/"; - //} + if (!String.IsNullOrEmpty(serverUrl)) + { + invUrl = serverUrl+"/"; + } m_log.DebugFormat( "[LOGIN]: Contacting inventory service at {0} for inventory skeleton of user {1}",