aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorMelanie2013-05-30 21:48:09 +0100
committerMelanie2013-05-30 21:48:09 +0100
commit669fa3ff9ab911dc7ee686b47e49a65f67a0a809 (patch)
tree6ea7f58cc6365595281f823f3994d2d22299ee40 /OpenSim/Region/Framework/Scenes
parentMerge branch 'master' into careminster (diff)
parentTry caching the user name for a new agent earlier on in the process of establ... (diff)
downloadopensim-SC_OLD-669fa3ff9ab911dc7ee686b47e49a65f67a0a809.zip
opensim-SC_OLD-669fa3ff9ab911dc7ee686b47e49a65f67a0a809.tar.gz
opensim-SC_OLD-669fa3ff9ab911dc7ee686b47e49a65f67a0a809.tar.bz2
opensim-SC_OLD-669fa3ff9ab911dc7ee686b47e49a65f67a0a809.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs12
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs1
2 files changed, 10 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index f561d97..6bac468 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3005,7 +3005,9 @@ namespace OpenSim.Region.Framework.Scenes
3005 // client is for a root or child agent. 3005 // client is for a root or child agent.
3006 client.SceneAgent = sp; 3006 client.SceneAgent = sp;
3007 3007
3008 // Cache the user's name 3008 // This is currently also being done earlier in NewUserConnection for real users to see if this
3009 // resolves problems where HG agents are occasionally seen by others as "Unknown user" in chat and other
3010 // places. However, we still need to do it here for NPCs.
3009 CacheUserName(sp, aCircuit); 3011 CacheUserName(sp, aCircuit);
3010 3012
3011 EventManager.TriggerOnNewClient(client); 3013 EventManager.TriggerOnNewClient(client);
@@ -3029,7 +3031,7 @@ namespace OpenSim.Region.Framework.Scenes
3029 { 3031 {
3030 string first = aCircuit.firstname, last = aCircuit.lastname; 3032 string first = aCircuit.firstname, last = aCircuit.lastname;
3031 3033
3032 if (sp.PresenceType == PresenceType.Npc) 3034 if (sp != null && sp.PresenceType == PresenceType.Npc)
3033 { 3035 {
3034 UserManagementModule.AddUser(aCircuit.AgentID, first, last); 3036 UserManagementModule.AddUser(aCircuit.AgentID, first, last);
3035 } 3037 }
@@ -3942,8 +3944,12 @@ namespace OpenSim.Region.Framework.Scenes
3942 CapsModule.SetAgentCapsSeeds(agent); 3944 CapsModule.SetAgentCapsSeeds(agent);
3943 } 3945 }
3944 } 3946 }
3945 }
3946 3947
3948 // Try caching an incoming user name much earlier on to see if this helps with an issue
3949 // where HG users are occasionally seen by others as "Unknown User" because their UUIDName
3950 // request for the HG avatar appears to trigger before the user name is cached.
3951 CacheUserName(null, agent);
3952 }
3947 3953
3948 if (CapsModule != null) 3954 if (CapsModule != null)
3949 { 3955 {
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 5184585..83bd3fb 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1550,6 +1550,7 @@ namespace OpenSim.Region.Framework.Scenes
1550 // Create child agents in neighbouring regions 1550 // Create child agents in neighbouring regions
1551 if (openChildAgents && !IsChildAgent) 1551 if (openChildAgents && !IsChildAgent)
1552 { 1552 {
1553 // Remember in HandleUseCircuitCode, we delayed this to here
1553 SendInitialDataToMe(); 1554 SendInitialDataToMe();
1554 1555
1555 IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>(); 1556 IEntityTransferModule m_agentTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>();