diff options
author | Melanie | 2010-06-14 04:50:27 +0100 |
---|---|---|
committer | Melanie | 2010-06-14 04:50:27 +0100 |
commit | c75b94f9f9afe3ad384f326db9d54e6bff3bde91 (patch) | |
tree | ea10bef43fd64e95048b953ac9bb65976911881a /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Merge branch 'master' into 0.7-post-fixes (diff) | |
parent | Fixes attachments coming back upon being detached in neighbouring regions and... (diff) | |
download | opensim-SC-c75b94f9f9afe3ad384f326db9d54e6bff3bde91.zip opensim-SC-c75b94f9f9afe3ad384f326db9d54e6bff3bde91.tar.gz opensim-SC-c75b94f9f9afe3ad384f326db9d54e6bff3bde91.tar.bz2 opensim-SC-c75b94f9f9afe3ad384f326db9d54e6bff3bde91.tar.xz |
Merge branch 'master' into 0.7-post-fixes
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 55060c3..2ff611e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -948,12 +948,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
948 | // Let the grid service module know, so this can be cached | 948 | // Let the grid service module know, so this can be cached |
949 | m_eventManager.TriggerOnRegionUp(otherRegion); | 949 | m_eventManager.TriggerOnRegionUp(otherRegion); |
950 | 950 | ||
951 | RegionInfo regInfo = new RegionInfo(xcell, ycell, otherRegion.InternalEndPoint, otherRegion.ExternalHostName); | ||
952 | regInfo.RegionID = otherRegion.RegionID; | ||
953 | regInfo.RegionName = otherRegion.RegionName; | ||
954 | regInfo.ScopeID = otherRegion.ScopeID; | ||
955 | regInfo.ExternalHostName = otherRegion.ExternalHostName; | ||
956 | GridRegion r = new GridRegion(regInfo); | ||
957 | try | 951 | try |
958 | { | 952 | { |
959 | ForEachScenePresence(delegate(ScenePresence agent) | 953 | ForEachScenePresence(delegate(ScenePresence agent) |
@@ -968,7 +962,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
968 | old.Add(otherRegion.RegionHandle); | 962 | old.Add(otherRegion.RegionHandle); |
969 | agent.DropOldNeighbours(old); | 963 | agent.DropOldNeighbours(old); |
970 | if (m_teleportModule != null) | 964 | if (m_teleportModule != null) |
971 | m_teleportModule.EnableChildAgent(agent, r); | 965 | m_teleportModule.EnableChildAgent(agent, otherRegion); |
972 | } | 966 | } |
973 | } | 967 | } |
974 | ); | 968 | ); |
@@ -1518,6 +1512,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1518 | { | 1512 | { |
1519 | m_log.DebugFormat("[REGION]: Enabling logins for {0}", RegionInfo.RegionName); | 1513 | m_log.DebugFormat("[REGION]: Enabling logins for {0}", RegionInfo.RegionName); |
1520 | LoginsDisabled = false; | 1514 | LoginsDisabled = false; |
1515 | m_sceneGridService.InformNeighborsThatRegionisUp(RequestModuleInterface<INeighbourService>(), RegionInfo); | ||
1521 | } | 1516 | } |
1522 | } | 1517 | } |
1523 | } | 1518 | } |
@@ -1802,6 +1797,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1802 | { | 1797 | { |
1803 | RegisterCommsEvents(); | 1798 | RegisterCommsEvents(); |
1804 | 1799 | ||
1800 | m_sceneGridService.SetScene(this); | ||
1801 | |||
1805 | // These two 'commands' *must be* next to each other or sim rebooting fails. | 1802 | // These two 'commands' *must be* next to each other or sim rebooting fails. |
1806 | //m_sceneGridService.RegisterRegion(m_interregionCommsOut, RegionInfo); | 1803 | //m_sceneGridService.RegisterRegion(m_interregionCommsOut, RegionInfo); |
1807 | 1804 | ||
@@ -1812,24 +1809,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
1812 | throw new Exception(error); | 1809 | throw new Exception(error); |
1813 | } | 1810 | } |
1814 | 1811 | ||
1815 | m_sceneGridService.SetScene(this); | ||
1816 | m_sceneGridService.InformNeighborsThatRegionisUp(RequestModuleInterface<INeighbourService>(), RegionInfo); | ||
1817 | |||
1818 | //Dictionary<string, string> dGridSettings = m_sceneGridService.GetGridSettings(); | ||
1819 | |||
1820 | //if (dGridSettings.ContainsKey("allow_forceful_banlines")) | ||
1821 | //{ | ||
1822 | // if (dGridSettings["allow_forceful_banlines"] != "TRUE") | ||
1823 | // { | ||
1824 | // m_log.Info("[GRID]: Grid is disabling forceful parcel banlists"); | ||
1825 | // EventManager.TriggerSetAllowForcefulBan(false); | ||
1826 | // } | ||
1827 | // else | ||
1828 | // { | ||
1829 | // m_log.Info("[GRID]: Grid is allowing forceful parcel banlists"); | ||
1830 | // EventManager.TriggerSetAllowForcefulBan(true); | ||
1831 | // } | ||
1832 | //} | ||
1833 | } | 1812 | } |
1834 | 1813 | ||
1835 | /// <summary> | 1814 | /// <summary> |