diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
7 files changed, 35 insertions, 16 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs index 9eaa758..6ed4867 100644 --- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs +++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs | |||
@@ -252,7 +252,7 @@ namespace Flotsam.RegionModules.AssetCache | |||
252 | } | 252 | } |
253 | else | 253 | else |
254 | { | 254 | { |
255 | m_MemoryCache.AddOrUpdate(key, asset, DateTime.MaxValue); | 255 | m_MemoryCache.AddOrUpdate(key, asset, Double.MaxValue); |
256 | } | 256 | } |
257 | } | 257 | } |
258 | } | 258 | } |
@@ -863,4 +863,4 @@ namespace Flotsam.RegionModules.AssetCache | |||
863 | 863 | ||
864 | #endregion | 864 | #endregion |
865 | } | 865 | } |
866 | } \ No newline at end of file | 866 | } |
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 28c50ab..457e0bb 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -307,7 +307,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
307 | /// <param name="remoteClient"></param> | 307 | /// <param name="remoteClient"></param> |
308 | /// <param name="itemID"></param> | 308 | /// <param name="itemID"></param> |
309 | /// <param name="AttachmentPt"></param> | 309 | /// <param name="AttachmentPt"></param> |
310 | /// <returns></returns> | 310 | /// <returns></returns> |
311 | protected UUID ShowAttachInUserInventory( | 311 | protected UUID ShowAttachInUserInventory( |
312 | SceneObjectGroup att, IClientAPI remoteClient, UUID itemID, uint AttachmentPt) | 312 | SceneObjectGroup att, IClientAPI remoteClient, UUID itemID, uint AttachmentPt) |
313 | { | 313 | { |
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index 7a21d5e..b3f0a25 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -318,12 +318,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
318 | 318 | ||
319 | UserAccount account = m_Scenes[0].UserAccountService.GetUserAccount(client.Scene.RegionInfo.ScopeID, fromAgentID); | 319 | UserAccount account = m_Scenes[0].UserAccountService.GetUserAccount(client.Scene.RegionInfo.ScopeID, fromAgentID); |
320 | 320 | ||
321 | PresenceInfo presence = null; | 321 | PresenceInfo presence = null; |
322 | PresenceInfo[] presences = PresenceService.GetAgents(new string[] { fid }); | 322 | PresenceInfo[] presences = PresenceService.GetAgents(new string[] { fid }); |
323 | if (presences != null && presences.Length > 0) | 323 | if (presences != null && presences.Length > 0) |
324 | presence = presences[0]; | 324 | presence = presences[0]; |
325 | if (presence != null) | 325 | if (presence != null) |
326 | im.offline = 0; | 326 | im.offline = 0; |
327 | 327 | ||
328 | im.fromAgentID = fromAgentID.Guid; | 328 | im.fromAgentID = fromAgentID.Guid; |
329 | im.fromAgentName = account.FirstName + " " + account.LastName; | 329 | im.fromAgentName = account.FirstName + " " + account.LastName; |
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 828c4e7..3791e1d 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -301,7 +301,11 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
301 | if (currentAgentCircuit != null) | 301 | if (currentAgentCircuit != null) |
302 | { | 302 | { |
303 | agentCircuit.ServiceURLs = currentAgentCircuit.ServiceURLs; | 303 | agentCircuit.ServiceURLs = currentAgentCircuit.ServiceURLs; |
304 | agentCircuit.IPAddress = currentAgentCircuit.IPAddress; | ||
304 | agentCircuit.Viewer = currentAgentCircuit.Viewer; | 305 | agentCircuit.Viewer = currentAgentCircuit.Viewer; |
306 | agentCircuit.Channel = currentAgentCircuit.Channel; | ||
307 | agentCircuit.Mac = currentAgentCircuit.Mac; | ||
308 | agentCircuit.Id0 = currentAgentCircuit.Id0; | ||
305 | } | 309 | } |
306 | 310 | ||
307 | if (NeedsNewAgent(oldRegionX, newRegionX, oldRegionY, newRegionY)) | 311 | if (NeedsNewAgent(oldRegionX, newRegionX, oldRegionY, newRegionY)) |
@@ -943,16 +947,16 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
943 | agent.CapsPath = CapsUtil.GetRandomCapsObjectPath(); | 947 | agent.CapsPath = CapsUtil.GetRandomCapsObjectPath(); |
944 | 948 | ||
945 | agent.ChildrenCapSeeds = new Dictionary<ulong, string>(sp.Scene.CapsModule.GetChildrenSeeds(sp.UUID)); | 949 | agent.ChildrenCapSeeds = new Dictionary<ulong, string>(sp.Scene.CapsModule.GetChildrenSeeds(sp.UUID)); |
946 | m_log.DebugFormat("[XXX] Seeds 1 {0}", agent.ChildrenCapSeeds.Count); | 950 | //m_log.DebugFormat("[XXX] Seeds 1 {0}", agent.ChildrenCapSeeds.Count); |
947 | 951 | ||
948 | if (!agent.ChildrenCapSeeds.ContainsKey(sp.Scene.RegionInfo.RegionHandle)) | 952 | if (!agent.ChildrenCapSeeds.ContainsKey(sp.Scene.RegionInfo.RegionHandle)) |
949 | agent.ChildrenCapSeeds.Add(sp.Scene.RegionInfo.RegionHandle, sp.ControllingClient.RequestClientInfo().CapsPath); | 953 | agent.ChildrenCapSeeds.Add(sp.Scene.RegionInfo.RegionHandle, sp.ControllingClient.RequestClientInfo().CapsPath); |
950 | m_log.DebugFormat("[XXX] Seeds 2 {0}", agent.ChildrenCapSeeds.Count); | 954 | //m_log.DebugFormat("[XXX] Seeds 2 {0}", agent.ChildrenCapSeeds.Count); |
951 | 955 | ||
952 | sp.AddNeighbourRegion(region.RegionHandle, agent.CapsPath); | 956 | sp.AddNeighbourRegion(region.RegionHandle, agent.CapsPath); |
953 | foreach (ulong h in agent.ChildrenCapSeeds.Keys) | 957 | //foreach (ulong h in agent.ChildrenCapSeeds.Keys) |
954 | m_log.DebugFormat("[XXX] --> {0}", h); | 958 | // m_log.DebugFormat("[XXX] --> {0}", h); |
955 | m_log.DebugFormat("[XXX] Adding {0}", region.RegionHandle); | 959 | //m_log.DebugFormat("[XXX] Adding {0}", region.RegionHandle); |
956 | agent.ChildrenCapSeeds.Add(region.RegionHandle, agent.CapsPath); | 960 | agent.ChildrenCapSeeds.Add(region.RegionHandle, agent.CapsPath); |
957 | 961 | ||
958 | if (sp.Scene.CapsModule != null) | 962 | if (sp.Scene.CapsModule != null) |
@@ -963,7 +967,11 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
963 | if (currentAgentCircuit != null) | 967 | if (currentAgentCircuit != null) |
964 | { | 968 | { |
965 | agent.ServiceURLs = currentAgentCircuit.ServiceURLs; | 969 | agent.ServiceURLs = currentAgentCircuit.ServiceURLs; |
970 | agent.IPAddress = currentAgentCircuit.IPAddress; | ||
966 | agent.Viewer = currentAgentCircuit.Viewer; | 971 | agent.Viewer = currentAgentCircuit.Viewer; |
972 | agent.Channel = currentAgentCircuit.Channel; | ||
973 | agent.Mac = currentAgentCircuit.Mac; | ||
974 | agent.Id0 = currentAgentCircuit.Id0; | ||
967 | } | 975 | } |
968 | 976 | ||
969 | InformClientOfNeighbourDelegate d = InformClientOfNeighbourAsync; | 977 | InformClientOfNeighbourDelegate d = InformClientOfNeighbourAsync; |
@@ -1052,7 +1060,11 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1052 | if (currentAgentCircuit != null) | 1060 | if (currentAgentCircuit != null) |
1053 | { | 1061 | { |
1054 | agent.ServiceURLs = currentAgentCircuit.ServiceURLs; | 1062 | agent.ServiceURLs = currentAgentCircuit.ServiceURLs; |
1063 | agent.IPAddress = currentAgentCircuit.IPAddress; | ||
1055 | agent.Viewer = currentAgentCircuit.Viewer; | 1064 | agent.Viewer = currentAgentCircuit.Viewer; |
1065 | agent.Channel = currentAgentCircuit.Channel; | ||
1066 | agent.Mac = currentAgentCircuit.Mac; | ||
1067 | agent.Id0 = currentAgentCircuit.Id0; | ||
1056 | } | 1068 | } |
1057 | 1069 | ||
1058 | if (newRegions.Contains(neighbour.RegionHandle)) | 1070 | if (newRegions.Contains(neighbour.RegionHandle)) |
diff --git a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs index e6cab1d..412dbb6 100644 --- a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs +++ b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs | |||
@@ -91,6 +91,7 @@ namespace OpenSim.Region.CoreModules.World.LightShare | |||
91 | m_scene.EventManager.OnMakeRootAgent += EventManager_OnMakeRootAgent; | 91 | m_scene.EventManager.OnMakeRootAgent += EventManager_OnMakeRootAgent; |
92 | m_scene.EventManager.OnSaveNewWindlightProfile += EventManager_OnSaveNewWindlightProfile; | 92 | m_scene.EventManager.OnSaveNewWindlightProfile += EventManager_OnSaveNewWindlightProfile; |
93 | m_scene.EventManager.OnSendNewWindlightProfileTargeted += EventManager_OnSendNewWindlightProfileTargeted; | 93 | m_scene.EventManager.OnSendNewWindlightProfileTargeted += EventManager_OnSendNewWindlightProfileTargeted; |
94 | m_scene.LoadWindlightProfile(); | ||
94 | } | 95 | } |
95 | 96 | ||
96 | InstallCommands(); | 97 | InstallCommands(); |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs index 7c12b8c..e7cfda1 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs | |||
@@ -53,9 +53,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts | |||
53 | public void Cache(UUID userID, UserAccount account) | 53 | public void Cache(UUID userID, UserAccount account) |
54 | { | 54 | { |
55 | // Cache even null accounts | 55 | // Cache even null accounts |
56 | m_UUIDCache.AddOrUpdate(userID, account, DateTime.Now + TimeSpan.FromSeconds(CACHE_EXPIRATION_SECONDS)); | 56 | m_UUIDCache.AddOrUpdate(userID, account, CACHE_EXPIRATION_SECONDS); |
57 | if (account != null) | 57 | if (account != null) |
58 | m_NameCache.AddOrUpdate(account.Name, account.PrincipalID, DateTime.Now + TimeSpan.FromSeconds(CACHE_EXPIRATION_SECONDS)); | 58 | m_NameCache.AddOrUpdate(account.Name, account.PrincipalID, CACHE_EXPIRATION_SECONDS); |
59 | 59 | ||
60 | m_log.DebugFormat("[USER CACHE]: cached user {0}", userID); | 60 | m_log.DebugFormat("[USER CACHE]: cached user {0}", userID); |
61 | } | 61 | } |
diff --git a/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs b/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs index a99b20c..49b4364 100644 --- a/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs +++ b/OpenSim/Region/CoreModules/World/Warp3DMap/MapImageModule.cs | |||
@@ -352,6 +352,12 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap | |||
352 | Face face = renderMesh.Faces[i]; | 352 | Face face = renderMesh.Faces[i]; |
353 | string meshName = primID + "-Face-" + i.ToString(); | 353 | string meshName = primID + "-Face-" + i.ToString(); |
354 | 354 | ||
355 | // Avoid adding duplicate meshes to the scene | ||
356 | if (renderer.Scene.objectData.ContainsKey(meshName)) | ||
357 | { | ||
358 | continue; | ||
359 | } | ||
360 | |||
355 | warp_Object faceObj = new warp_Object(face.Vertices.Count, face.Indices.Count / 3); | 361 | warp_Object faceObj = new warp_Object(face.Vertices.Count, face.Indices.Count / 3); |
356 | 362 | ||
357 | for (int j = 0; j < face.Vertices.Count; j++) | 363 | for (int j = 0; j < face.Vertices.Count; j++) |