aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorMelanie Thielker2010-08-19 20:41:55 +0200
committerMelanie2010-08-19 20:24:34 +0100
commit22fdd7b1f161411e17871411846e22f43abbbed6 (patch)
treecf1ac072b14d61b329c198e672d02881b6080e52 /OpenSim/Region/ScriptEngine/Shared
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-22fdd7b1f161411e17871411846e22f43abbbed6.zip
opensim-SC_OLD-22fdd7b1f161411e17871411846e22f43abbbed6.tar.gz
opensim-SC_OLD-22fdd7b1f161411e17871411846e22f43abbbed6.tar.bz2
opensim-SC_OLD-22fdd7b1f161411e17871411846e22f43abbbed6.tar.xz
Short-circuit the grid server lookup for RequestSimulatorData if the region
info is requested for is the local region
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index d38fe9f..b6eddb1 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -8720,7 +8720,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8720 8720
8721 string reply = String.Empty; 8721 string reply = String.Empty;
8722 8722
8723 GridRegion info = m_ScriptEngine.World.GridService.GetRegionByName(m_ScriptEngine.World.RegionInfo.ScopeID, simulator); 8723 GridRegion info;
8724
8725 if (m_ScriptEngine.World.RegionInfo.RegionName == simulator)
8726 info = new GridRegion(m_ScriptEngine.World.RegionInfo);
8727 else
8728 info = m_ScriptEngine.World.GridService.GetRegionByName(m_ScriptEngine.World.RegionInfo.ScopeID, simulator);
8724 8729
8725 switch (data) 8730 switch (data)
8726 { 8731 {