diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 7 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index c7a38f7..e58aadc 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2970,6 +2970,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
2970 | SubscribeToClientEvents(client); | 2970 | SubscribeToClientEvents(client); |
2971 | 2971 | ||
2972 | sp = m_sceneGraph.CreateAndAddChildScenePresence(client, aCircuit.Appearance, type); | 2972 | sp = m_sceneGraph.CreateAndAddChildScenePresence(client, aCircuit.Appearance, type); |
2973 | InventoryFolderBase cof = InventoryService.GetFolderForType(client.AgentId, (AssetType)46); | ||
2974 | if (cof == null) | ||
2975 | sp.COF = UUID.Zero; | ||
2976 | else | ||
2977 | sp.COF = cof.ID; | ||
2978 | |||
2979 | m_log.DebugFormat("[SCENE]: COF for {0} is {1}", client.AgentId, sp.COF); | ||
2973 | m_eventManager.TriggerOnNewPresence(sp); | 2980 | m_eventManager.TriggerOnNewPresence(sp); |
2974 | 2981 | ||
2975 | sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; | 2982 | sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 471caa2..91f9c0b 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -443,6 +443,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
443 | get { return (IClientCore)ControllingClient; } | 443 | get { return (IClientCore)ControllingClient; } |
444 | } | 444 | } |
445 | 445 | ||
446 | public UUID COF { get; set; } | ||
447 | |||
446 | // public Vector3 ParentPosition { get; set; } | 448 | // public Vector3 ParentPosition { get; set; } |
447 | 449 | ||
448 | /// <summary> | 450 | /// <summary> |