Short-circuit the grid server lookup for RequestSimulatorData if the region

info is requested for is the local region
0.7.0.2-release
Melanie Thielker 2010-08-19 20:41:55 +02:00 committed by Diva Canto
parent 1e389438e2
commit 37bd48c5a7
1 changed files with 6 additions and 1 deletions

View File

@ -8447,7 +8447,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
string reply = String.Empty; string reply = String.Empty;
GridRegion info = m_ScriptEngine.World.GridService.GetRegionByName(m_ScriptEngine.World.RegionInfo.ScopeID, simulator); GridRegion info;
if (m_ScriptEngine.World.RegionInfo.RegionName == simulator)
info = new GridRegion(m_ScriptEngine.World.RegionInfo);
else
info = m_ScriptEngine.World.GridService.GetRegionByName(m_ScriptEngine.World.RegionInfo.ScopeID, simulator);
switch (data) switch (data)
{ {