aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorDiva Canto2010-03-02 07:53:52 -0800
committerDiva Canto2010-03-02 07:53:52 -0800
commit14073831d26172575655dbbfa7fd45c6366e9f60 (patch)
treed9548e89a94b28e227c971fbd490acee2ca44408 /OpenSim/Region/Framework/Scenes/Scene.cs
parentFixed SQL tests. (diff)
downloadopensim-SC_OLD-14073831d26172575655dbbfa7fd45c6366e9f60.zip
opensim-SC_OLD-14073831d26172575655dbbfa7fd45c6366e9f60.tar.gz
opensim-SC_OLD-14073831d26172575655dbbfa7fd45c6366e9f60.tar.bz2
opensim-SC_OLD-14073831d26172575655dbbfa7fd45c6366e9f60.tar.xz
Fixes Region.Framework tests. Although these tests don't fail, they need to be rewritten, because they are doing agent manipulations in the wrong way, so they're fairly meaningless.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs15
1 files changed, 4 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index d00c990..5e5a52e 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2467,7 +2467,7 @@ namespace OpenSim.Region.Framework.Scenes
2467 m_log.DebugFormat("[Scene]: Incoming client {0} {1} in region {2} via Login", aCircuit.firstname, aCircuit.lastname, RegionInfo.RegionName); 2467 m_log.DebugFormat("[Scene]: Incoming client {0} {1} in region {2} via Login", aCircuit.firstname, aCircuit.lastname, RegionInfo.RegionName);
2468 vialogin = true; 2468 vialogin = true;
2469 IUserAgentVerificationModule userVerification = RequestModuleInterface<IUserAgentVerificationModule>(); 2469 IUserAgentVerificationModule userVerification = RequestModuleInterface<IUserAgentVerificationModule>();
2470 if (userVerification != null) 2470 if (userVerification != null && ep != null)
2471 { 2471 {
2472 if (!userVerification.VerifyClient(aCircuit, ep.ToString())) 2472 if (!userVerification.VerifyClient(aCircuit, ep.ToString()))
2473 { 2473 {
@@ -2491,22 +2491,15 @@ namespace OpenSim.Region.Framework.Scenes
2491 } 2491 }
2492 2492
2493 m_log.Debug("[Scene] Adding new agent " + client.Name + " to scene " + RegionInfo.RegionName); 2493 m_log.Debug("[Scene] Adding new agent " + client.Name + " to scene " + RegionInfo.RegionName);
2494 /*
2495 string logMsg = string.Format("[SCENE]: Adding new {0} agent for {1} in {2}",
2496 ((aCircuit.child == true) ? "child" : "root"), client.Name,
2497 RegionInfo.RegionName);
2498 2494
2499 m_log.Debug(logMsg);
2500 */
2501
2502 //CommsManager.UserProfileCacheService.AddNewUser(client.AgentId);
2503 ScenePresence sp = CreateAndAddScenePresence(client); 2495 ScenePresence sp = CreateAndAddScenePresence(client);
2504 sp.Appearance = aCircuit.Appearance; 2496 if (aCircuit != null)
2497 sp.Appearance = aCircuit.Appearance;
2505 2498
2506 // HERE!!! Do the initial attachments right here 2499 // HERE!!! Do the initial attachments right here
2507 // first agent upon login is a root agent by design. 2500 // first agent upon login is a root agent by design.
2508 // All other AddNewClient calls find aCircuit.child to be true 2501 // All other AddNewClient calls find aCircuit.child to be true
2509 if (aCircuit == null || aCircuit.child == false) 2502 if (aCircuit == null || (aCircuit != null && aCircuit.child == false))
2510 { 2503 {
2511 sp.IsChildAgent = false; 2504 sp.IsChildAgent = false;
2512 Util.FireAndForget(delegate(object o) { sp.RezAttachments(); }); 2505 Util.FireAndForget(delegate(object o) { sp.RezAttachments(); });