aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorHomer Horwitz2008-11-25 19:08:52 +0000
committerHomer Horwitz2008-11-25 19:08:52 +0000
commit4acddb6797547d75959baf14102ca3f033edd3aa (patch)
tree7e0bf6098c296b77b50773bdea8a8f19018b60e5 /OpenSim/Region/Environment/Scenes
parentRevert the rest of r7468 (diff)
downloadopensim-SC_OLD-4acddb6797547d75959baf14102ca3f033edd3aa.zip
opensim-SC_OLD-4acddb6797547d75959baf14102ca3f033edd3aa.tar.gz
opensim-SC_OLD-4acddb6797547d75959baf14102ca3f033edd3aa.tar.bz2
opensim-SC_OLD-4acddb6797547d75959baf14102ca3f033edd3aa.tar.xz
Mantis#2692: Thanks Diva, for a patch that fixes a bug in HyperGrid.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Hypergrid/HGAssetMapper.cs10
-rw-r--r--OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs2
2 files changed, 5 insertions, 7 deletions
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
81 return null; 81 return null;
82 } 82 }
83 83
84 private bool IsHomeUser(UUID userID) 84 private bool IsLocalUser(UUID userID)
85 { 85 {
86 CachedUserInfo uinfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(userID); 86 CachedUserInfo uinfo = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(userID);
87 87
88 if (uinfo != null) 88 if (uinfo != null)
89 { 89 {
90 //if ((uinfo.UserProfile.UserAssetURI == null) || (uinfo.UserProfile.UserAssetURI == "") || 90 if (HGNetworkServersInfo.Singleton.IsLocalUser(uinfo.UserProfile))
91 // uinfo.UserProfile.UserAssetURI.Equals(m_scene.CommsManager.NetworkServersInfo.AssetURL))
92 if (HGNetworkServersInfo.Singleton.IsLocalUser(uinfo.UserProfile.UserAssetURI))
93 { 91 {
94 m_log.Debug("[HGScene]: Home user " + uinfo.UserProfile.FirstName + " " + uinfo.UserProfile.SurName); 92 m_log.Debug("[HGScene]: Home user " + uinfo.UserProfile.FirstName + " " + uinfo.UserProfile.SurName);
95 return true; 93 return true;
@@ -285,7 +283,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
285 283
286 public void Get(UUID itemID, UUID ownerID) 284 public void Get(UUID itemID, UUID ownerID)
287 { 285 {
288 if (!IsInAssetMap(itemID) && !IsHomeUser(ownerID)) 286 if (!IsInAssetMap(itemID) && !IsLocalUser(ownerID))
289 { 287 {
290 // Get the item from the remote asset server onto the local AssetCache 288 // Get the item from the remote asset server onto the local AssetCache
291 // and place an entry in m_assetMap 289 // and place an entry in m_assetMap
@@ -328,7 +326,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid
328 326
329 public void Post(UUID itemID, UUID ownerID) 327 public void Post(UUID itemID, UUID ownerID)
330 { 328 {
331 if (!IsHomeUser(ownerID)) 329 if (!IsLocalUser(ownerID))
332 { 330 {
333 // Post the item from the local AssetCache ontp the remote asset server 331 // Post the item from the local AssetCache ontp the remote asset server
334 // and place an entry in m_assetMap 332 // 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
118 CachedUserInfo uinfo = m_commsProvider.UserProfileCacheService.GetUserDetails(avatar.UUID); 118 CachedUserInfo uinfo = m_commsProvider.UserProfileCacheService.GetUserDetails(avatar.UUID);
119 if (uinfo != null) 119 if (uinfo != null)
120 { 120 {
121 isHomeUser = HGNetworkServersInfo.Singleton.IsLocalUser(uinfo.UserProfile.UserAssetURI); 121 isHomeUser = HGNetworkServersInfo.Singleton.IsLocalUser(uinfo.UserProfile);
122 realHandle = m_hg.FindRegionHandle(regionHandle); 122 realHandle = m_hg.FindRegionHandle(regionHandle);
123 Console.WriteLine("XXX ---- home user? " + isHomeUser + " --- hyperlink? " + isHyperLink + " --- real handle: " + realHandle.ToString()); 123 Console.WriteLine("XXX ---- home user? " + isHomeUser + " --- hyperlink? " + isHyperLink + " --- real handle: " + realHandle.ToString());
124 } 124 }