aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorUbitUmarov2014-08-13 03:54:13 +0100
committerUbitUmarov2014-08-13 03:54:13 +0100
commit92117d48afd453ce636f4e4bb8cf6885da9931ab (patch)
tree5d670c5b9c1bb220c7a52b8e7176f35dbde18b31 /OpenSim/Region/Framework/Scenes
parentreverted last change since it did nothing usefull (diff)
downloadopensim-SC-92117d48afd453ce636f4e4bb8cf6885da9931ab.zip
opensim-SC-92117d48afd453ce636f4e4bb8cf6885da9931ab.tar.gz
opensim-SC-92117d48afd453ce636f4e4bb8cf6885da9931ab.tar.bz2
opensim-SC-92117d48afd453ce636f4e4bb8cf6885da9931ab.tar.xz
remove the region where we are root from the list of Neighbours and
childSeeds
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index ebde92e..67a33ae 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1650,6 +1650,14 @@ namespace OpenSim.Region.Framework.Scenes
1650 } 1650 }
1651 } 1651 }
1652 1652
1653 public void DropThisRootRegionFromNeighbours()
1654 {
1655 ulong handle = m_scene.RegionInfo.RegionHandle;
1656 RemoveNeighbourRegion(handle);
1657 Scene.CapsModule.DropChildSeed(UUID, handle);
1658 }
1659
1660
1653 public Dictionary<ulong, string> KnownRegions 1661 public Dictionary<ulong, string> KnownRegions
1654 { 1662 {
1655 get 1663 get
@@ -1851,6 +1859,10 @@ namespace OpenSim.Region.Framework.Scenes
1851 newhide = m_currentParcelHide; 1859 newhide = m_currentParcelHide;
1852 m_currentParcelHide = false; 1860 m_currentParcelHide = false;
1853 1861
1862 // take this region out of children Neighbours list
1863 // possible should be done elsewhere
1864 DropThisRootRegionFromNeighbours();
1865
1854 ValidateAndSendAppearanceAndAgentData(); 1866 ValidateAndSendAppearanceAndAgentData();
1855 1867
1856 // attachments 1868 // attachments