mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Make ISimulationScene.GetScene() used the more efficient region id for lookup rather than the region handle.
This commit is contained in:
@@ -546,7 +546,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
AgentData agent = new AgentData();
|
||||
try
|
||||
{
|
||||
agent.Unpack(args, m_SimulationService.GetScene(destination.RegionHandle));
|
||||
agent.Unpack(args, m_SimulationService.GetScene(destination.RegionID));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -566,7 +566,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
AgentPosition agent = new AgentPosition();
|
||||
try
|
||||
{
|
||||
agent.Unpack(args, m_SimulationService.GetScene(destination.RegionHandle));
|
||||
agent.Unpack(args, m_SimulationService.GetScene(destination.RegionID));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
if (args.ContainsKey("extra") && args["extra"] != null)
|
||||
extraStr = args["extra"].AsString();
|
||||
|
||||
IScene s = m_SimulationService.GetScene(destination.RegionHandle);
|
||||
IScene s = m_SimulationService.GetScene(destination.RegionID);
|
||||
ISceneObject sog = null;
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user