mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
refactor: remove Scene.SetRootAgentScene() in favour of existing event with same name
This commit is contained in:
@@ -4487,17 +4487,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
client.SendLayerData(patchX, patchY, Heightmap.GetFloatsSerialised());
|
||||
}
|
||||
|
||||
public void SetRootAgentScene(UUID agentID)
|
||||
{
|
||||
IInventoryTransferModule inv = RequestModuleInterface<IInventoryTransferModule>();
|
||||
if (inv == null)
|
||||
return;
|
||||
|
||||
inv.SetRootAgentScene(agentID, this);
|
||||
|
||||
EventManager.TriggerSetRootAgentScene(agentID, this);
|
||||
}
|
||||
|
||||
public bool NeedSceneCacheClear(UUID agentID)
|
||||
{
|
||||
IInventoryTransferModule inv = RequestModuleInterface<IInventoryTransferModule>();
|
||||
|
||||
@@ -821,7 +821,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
m_rootRegionHandle = m_scene.RegionInfo.RegionHandle;
|
||||
|
||||
m_scene.SetRootAgentScene(m_uuid);
|
||||
m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene);
|
||||
|
||||
// Moved this from SendInitialData to ensure that m_appearance is initialized
|
||||
// before the inventory is processed in MakeRootAgent. This fixes a race condition
|
||||
|
||||
Reference in New Issue
Block a user