aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorDiva Canto2009-09-27 13:43:57 -0700
committerDiva Canto2009-09-27 13:43:57 -0700
commit2432cc607ec206b79149c1e9b1aa995794fec3bc (patch)
tree291c97bb2530b386dc01ee56bf69d7884b654761 /OpenSim/Region/Framework/Scenes
parentUnpacking the mess with OtherRegionUp, so we can have a real cache of the nei... (diff)
downloadopensim-SC_OLD-2432cc607ec206b79149c1e9b1aa995794fec3bc.zip
opensim-SC_OLD-2432cc607ec206b79149c1e9b1aa995794fec3bc.tar.gz
opensim-SC_OLD-2432cc607ec206b79149c1e9b1aa995794fec3bc.tar.bz2
opensim-SC_OLD-2432cc607ec206b79149c1e9b1aa995794fec3bc.tar.xz
Neighbours cache working.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs4
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs4
2 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 55478da..bb47ff4 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -611,6 +611,9 @@ namespace OpenSim.Region.Framework.Scenes
611 int resultY = Math.Abs((int)ycell - (int)RegionInfo.RegionLocY); 611 int resultY = Math.Abs((int)ycell - (int)RegionInfo.RegionLocY);
612 if (resultX <= 1 && resultY <= 1) 612 if (resultX <= 1 && resultY <= 1)
613 { 613 {
614 // Let the grid service module know, so this can be cached
615 m_eventManager.TriggerOnRegionUp(otherRegion);
616
614 RegionInfo regInfo = new RegionInfo(xcell, ycell, otherRegion.InternalEndPoint, otherRegion.ExternalHostName); 617 RegionInfo regInfo = new RegionInfo(xcell, ycell, otherRegion.InternalEndPoint, otherRegion.ExternalHostName);
615 regInfo.RegionID = otherRegion.RegionID; 618 regInfo.RegionID = otherRegion.RegionID;
616 regInfo.RegionName = otherRegion.RegionName; 619 regInfo.RegionName = otherRegion.RegionName;
@@ -641,6 +644,7 @@ namespace OpenSim.Region.Framework.Scenes
641 // This shouldn't happen too often anymore. 644 // This shouldn't happen too often anymore.
642 m_log.Error("[SCENE]: Couldn't inform client of regionup because we got a null reference exception"); 645 m_log.Error("[SCENE]: Couldn't inform client of regionup because we got a null reference exception");
643 } 646 }
647
644 } 648 }
645 else 649 else
646 { 650 {
diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
index 3294ceb..4a2db5e 100644
--- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
@@ -455,14 +455,12 @@ namespace OpenSim.Region.Framework.Scenes
455 // So we're temporarily going back to the old method of grabbing it from the Grid Server Every time :/ 455 // So we're temporarily going back to the old method of grabbing it from the Grid Server Every time :/
456 if (m_regionInfo != null) 456 if (m_regionInfo != null)
457 { 457 {
458 neighbours = 458 neighbours = RequestNeighbours(avatar.Scene,m_regionInfo.RegionLocX, m_regionInfo.RegionLocY);
459 RequestNeighbours(avatar.Scene,m_regionInfo.RegionLocX, m_regionInfo.RegionLocY);
460 } 459 }
461 else 460 else
462 { 461 {
463 m_log.Debug("[ENABLENEIGHBOURCHILDAGENTS]: m_regionInfo was null in EnableNeighbourChildAgents, is this a NPC?"); 462 m_log.Debug("[ENABLENEIGHBOURCHILDAGENTS]: m_regionInfo was null in EnableNeighbourChildAgents, is this a NPC?");
464 } 463 }
465
466 464
467 /// We need to find the difference between the new regions where there are no child agents 465 /// We need to find the difference between the new regions where there are no child agents
468 /// and the regions where there are already child agents. We only send notification to the former. 466 /// and the regions where there are already child agents. We only send notification to the former.