diff options
author | Diva Canto | 2009-08-16 16:17:19 -0700 |
---|---|---|
committer | Diva Canto | 2009-08-16 16:17:19 -0700 |
commit | e02062051d38e56ec22952e25a558039b5e54ab3 (patch) | |
tree | 5736388c72743843fd208cc30c5785898dd7b906 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim into in... (diff) | |
download | opensim-SC-e02062051d38e56ec22952e25a558039b5e54ab3.zip opensim-SC-e02062051d38e56ec22952e25a558039b5e54ab3.tar.gz opensim-SC-e02062051d38e56ec22952e25a558039b5e54ab3.tar.bz2 opensim-SC-e02062051d38e56ec22952e25a558039b5e54ab3.tar.xz |
Making attachments work again. Tons of debug more. This needs more testing and a lot of cleaning.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 33166df..f475c64 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2042,13 +2042,22 @@ namespace OpenSim.Region.Framework.Scenes | |||
2042 | } | 2042 | } |
2043 | else | 2043 | else |
2044 | { | 2044 | { |
2045 | AgentCircuitData aCircuit = m_authenticateHandler.GetAgentCircuitData(client.CircuitCode); | ||
2046 | |||
2045 | m_log.DebugFormat( | 2047 | m_log.DebugFormat( |
2046 | "[SCENE]: Adding new child agent for {0} in {1}", | 2048 | "[SCENE]: Adding new {0} agent for {1} in {2}", |
2047 | client.Name, RegionInfo.RegionName); | 2049 | ((aCircuit.child == true) ? "child" : "root"), client.Name, RegionInfo.RegionName); |
2048 | 2050 | ||
2049 | CommsManager.UserProfileCacheService.AddNewUser(client.AgentId); | 2051 | CommsManager.UserProfileCacheService.AddNewUser(client.AgentId); |
2050 | 2052 | ||
2051 | CreateAndAddScenePresence(client); | 2053 | ScenePresence sp = CreateAndAddScenePresence(client); |
2054 | |||
2055 | // HERE!!! Do the initial attachments here | ||
2056 | if (aCircuit.child == false) // first agent upon login is root agent | ||
2057 | { | ||
2058 | sp.IsChildAgent = false; | ||
2059 | sp.RezAttachments(); | ||
2060 | } | ||
2052 | } | 2061 | } |
2053 | 2062 | ||
2054 | m_LastLogin = Environment.TickCount; | 2063 | m_LastLogin = Environment.TickCount; |