diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IInventoryTransferModule.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 11 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 2 |
3 files changed, 2 insertions, 14 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IInventoryTransferModule.cs b/OpenSim/Region/Framework/Interfaces/IInventoryTransferModule.cs index 2390ff4..1e92fde 100644 --- a/OpenSim/Region/Framework/Interfaces/IInventoryTransferModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IInventoryTransferModule.cs | |||
@@ -35,7 +35,6 @@ namespace OpenSim.Region.Framework.Interfaces | |||
35 | /// </summary> | 35 | /// </summary> |
36 | public interface IInventoryTransferModule | 36 | public interface IInventoryTransferModule |
37 | { | 37 | { |
38 | void SetRootAgentScene(UUID agentID, Scene scene); | ||
39 | bool NeedSceneCacheClear(UUID agentID, Scene scene); | 38 | bool NeedSceneCacheClear(UUID agentID, Scene scene); |
40 | } | 39 | } |
41 | } | 40 | } \ No newline at end of file |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 4d5c1e7..631046a 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4487,17 +4487,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
4487 | client.SendLayerData(patchX, patchY, Heightmap.GetFloatsSerialised()); | 4487 | client.SendLayerData(patchX, patchY, Heightmap.GetFloatsSerialised()); |
4488 | } | 4488 | } |
4489 | 4489 | ||
4490 | public void SetRootAgentScene(UUID agentID) | ||
4491 | { | ||
4492 | IInventoryTransferModule inv = RequestModuleInterface<IInventoryTransferModule>(); | ||
4493 | if (inv == null) | ||
4494 | return; | ||
4495 | |||
4496 | inv.SetRootAgentScene(agentID, this); | ||
4497 | |||
4498 | EventManager.TriggerSetRootAgentScene(agentID, this); | ||
4499 | } | ||
4500 | |||
4501 | public bool NeedSceneCacheClear(UUID agentID) | 4490 | public bool NeedSceneCacheClear(UUID agentID) |
4502 | { | 4491 | { |
4503 | IInventoryTransferModule inv = RequestModuleInterface<IInventoryTransferModule>(); | 4492 | IInventoryTransferModule inv = RequestModuleInterface<IInventoryTransferModule>(); |
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 14d7d6a..08c6e27 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -821,7 +821,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
821 | 821 | ||
822 | m_rootRegionHandle = m_scene.RegionInfo.RegionHandle; | 822 | m_rootRegionHandle = m_scene.RegionInfo.RegionHandle; |
823 | 823 | ||
824 | m_scene.SetRootAgentScene(m_uuid); | 824 | m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); |
825 | 825 | ||
826 | // Moved this from SendInitialData to ensure that m_appearance is initialized | 826 | // Moved this from SendInitialData to ensure that m_appearance is initialized |
827 | // before the inventory is processed in MakeRootAgent. This fixes a race condition | 827 | // before the inventory is processed in MakeRootAgent. This fixes a race condition |