From 4acddb6797547d75959baf14102ca3f033edd3aa Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Tue, 25 Nov 2008 19:08:52 +0000 Subject: Mantis#2692: Thanks Diva, for a patch that fixes a bug in HyperGrid. --- OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs | 10 ++++------ .../Scenes/Hypergrid/HGSceneCommunicationService.cs | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs b/OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs index 889c77e..928b7c8 100644 --- a/OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs +++ b/OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs @@ -81,15 +81,13 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid return null; } - private bool IsHomeUser(UUID userID) + private bool IsLocalUser(UUID userID) { CachedUserInfo uinfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(userID); if (uinfo != null) { - //if ((uinfo.UserProfile.UserAssetURI == null) || (uinfo.UserProfile.UserAssetURI == "") || - // uinfo.UserProfile.UserAssetURI.Equals(m_scene.CommsManager.NetworkServersInfo.AssetURL)) - if (HGNetworkServersInfo.Singleton.IsLocalUser(uinfo.UserProfile.UserAssetURI)) + if (HGNetworkServersInfo.Singleton.IsLocalUser(uinfo.UserProfile)) { m_log.Debug("[HGScene]: Home user " + uinfo.UserProfile.FirstName + " " + uinfo.UserProfile.SurName); return true; @@ -285,7 +283,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid public void Get(UUID itemID, UUID ownerID) { - if (!IsInAssetMap(itemID) && !IsHomeUser(ownerID)) + if (!IsInAssetMap(itemID) && !IsLocalUser(ownerID)) { // Get the item from the remote asset server onto the local AssetCache // and place an entry in m_assetMap @@ -328,7 +326,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid public void Post(UUID itemID, UUID ownerID) { - if (!IsHomeUser(ownerID)) + if (!IsLocalUser(ownerID)) { // Post the item from the local AssetCache ontp the remote asset server // and place an entry in m_assetMap diff --git a/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs index 9eb331a..9dd2426 100644 --- a/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs @@ -118,7 +118,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid CachedUserInfo uinfo = m_commsProvider.UserProfileCacheService.GetUserDetails(avatar.UUID); if (uinfo != null) { - isHomeUser = HGNetworkServersInfo.Singleton.IsLocalUser(uinfo.UserProfile.UserAssetURI); + isHomeUser = HGNetworkServersInfo.Singleton.IsLocalUser(uinfo.UserProfile); realHandle = m_hg.FindRegionHandle(regionHandle); Console.WriteLine("XXX ---- home user? " + isHomeUser + " --- hyperlink? " + isHyperLink + " --- real handle: " + realHandle.ToString()); } -- cgit v1.1