From 92117d48afd453ce636f4e4bb8cf6885da9931ab Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 13 Aug 2014 03:54:13 +0100 Subject: remove the region where we are root from the list of Neighbours and childSeeds --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs') 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 } } + public void DropThisRootRegionFromNeighbours() + { + ulong handle = m_scene.RegionInfo.RegionHandle; + RemoveNeighbourRegion(handle); + Scene.CapsModule.DropChildSeed(UUID, handle); + } + + public Dictionary KnownRegions { get @@ -1851,6 +1859,10 @@ namespace OpenSim.Region.Framework.Scenes newhide = m_currentParcelHide; m_currentParcelHide = false; + // take this region out of children Neighbours list + // possible should be done elsewhere + DropThisRootRegionFromNeighbours(); + ValidateAndSendAppearanceAndAgentData(); // attachments -- cgit v1.1