diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 0266faf..aa81000 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3000,13 +3000,18 @@ namespace OpenSim.Region.Framework.Scenes | |||
3000 | if (sp == null) | 3000 | if (sp == null) |
3001 | { | 3001 | { |
3002 | m_log.DebugFormat( | 3002 | m_log.DebugFormat( |
3003 | "[SCENE]: Adding new child scene presence {0} {1} to scene {2} at pos {3}", | 3003 | "[SCENE]: Adding new child scene presence {0} {1} to scene {2} at pos {3}, tpflags: {4}", |
3004 | client.Name, client.AgentId, RegionInfo.RegionName, client.StartPos); | 3004 | client.Name, client.AgentId, RegionInfo.RegionName, client.StartPos, |
3005 | ((TPFlags)aCircuit.teleportFlags).ToString()); | ||
3005 | 3006 | ||
3006 | m_clientManager.Add(client); | 3007 | m_clientManager.Add(client); |
3007 | SubscribeToClientEvents(client); | 3008 | SubscribeToClientEvents(client); |
3008 | 3009 | ||
3009 | sp = m_sceneGraph.CreateAndAddChildScenePresence(client, aCircuit.Appearance, type); | 3010 | sp = m_sceneGraph.CreateAndAddChildScenePresence(client, aCircuit.Appearance, type); |
3011 | |||
3012 | sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; | ||
3013 | |||
3014 | /* done in completMovement | ||
3010 | InventoryFolderBase cof = InventoryService.GetFolderForType(client.AgentId, (AssetType)46); | 3015 | InventoryFolderBase cof = InventoryService.GetFolderForType(client.AgentId, (AssetType)46); |
3011 | if (cof == null) | 3016 | if (cof == null) |
3012 | sp.COF = UUID.Zero; | 3017 | sp.COF = UUID.Zero; |
@@ -3014,9 +3019,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3014 | sp.COF = cof.ID; | 3019 | sp.COF = cof.ID; |
3015 | 3020 | ||
3016 | m_log.DebugFormat("[SCENE]: COF for {0} is {1}", client.AgentId, sp.COF); | 3021 | m_log.DebugFormat("[SCENE]: COF for {0} is {1}", client.AgentId, sp.COF); |
3022 | */ | ||
3017 | m_eventManager.TriggerOnNewPresence(sp); | 3023 | m_eventManager.TriggerOnNewPresence(sp); |
3018 | 3024 | ||
3019 | sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; | ||
3020 | } | 3025 | } |
3021 | else | 3026 | else |
3022 | { | 3027 | { |