diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index ce055d3..c757147 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2952,6 +2952,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
2952 | SubscribeToClientEvents(client); | 2952 | SubscribeToClientEvents(client); |
2953 | 2953 | ||
2954 | sp = m_sceneGraph.CreateAndAddChildScenePresence(client, aCircuit.Appearance, type); | 2954 | sp = m_sceneGraph.CreateAndAddChildScenePresence(client, aCircuit.Appearance, type); |
2955 | InventoryFolderBase cof = InventoryService.GetFolderForType(client.AgentId, (AssetType)46); | ||
2956 | if (cof == null) | ||
2957 | sp.COF = UUID.Zero; | ||
2958 | else | ||
2959 | sp.COF = cof.ID; | ||
2960 | |||
2961 | m_log.DebugFormat("[SCENE]: COF for {0} is {1}", client.AgentId, sp.COF); | ||
2955 | m_eventManager.TriggerOnNewPresence(sp); | 2962 | m_eventManager.TriggerOnNewPresence(sp); |
2956 | 2963 | ||
2957 | sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; | 2964 | sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; |