aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorTeravus Ovares2009-08-01 14:26:00 +0000
committerTeravus Ovares2009-08-01 14:26:00 +0000
commit4cbf0444df4b4c0eb3616e19279203e5f17a939b (patch)
tree7489d6f56865229d44ac9c689fb03a6353ffa934 /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentAdd copyright header. Formatting cleanup. (diff)
downloadopensim-SC_OLD-4cbf0444df4b4c0eb3616e19279203e5f17a939b.zip
opensim-SC_OLD-4cbf0444df4b4c0eb3616e19279203e5f17a939b.tar.gz
opensim-SC_OLD-4cbf0444df4b4c0eb3616e19279203e5f17a939b.tar.bz2
opensim-SC_OLD-4cbf0444df4b4c0eb3616e19279203e5f17a939b.tar.xz
* Tweak the caps manager so that the NPCAvatar works again.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 6850312..fa1fd89 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -538,7 +538,13 @@ namespace OpenSim.Region.Framework.Scenes
538 538
539 public void AdjustKnownSeeds() 539 public void AdjustKnownSeeds()
540 { 540 {
541 Dictionary<ulong, string> seeds = Scene.CapsModule.GetChildrenSeeds(UUID); 541 Dictionary<ulong, string> seeds;
542
543 if (Scene.CapsModule != null)
544 seeds = Scene.CapsModule.GetChildrenSeeds(UUID);
545 else
546 seeds = new Dictionary<ulong, string>();
547
542 List<ulong> old = new List<ulong>(); 548 List<ulong> old = new List<ulong>();
543 foreach (ulong handle in seeds.Keys) 549 foreach (ulong handle in seeds.Keys)
544 { 550 {
@@ -552,7 +558,10 @@ namespace OpenSim.Region.Framework.Scenes
552 } 558 }
553 } 559 }
554 DropOldNeighbours(old); 560 DropOldNeighbours(old);
555 Scene.CapsModule.SetChildrenSeed(UUID, seeds); 561
562 if (Scene.CapsModule != null)
563 Scene.CapsModule.SetChildrenSeed(UUID, seeds);
564
556 KnownRegions = seeds; 565 KnownRegions = seeds;
557 //m_log.Debug(" ++++++++++AFTER+++++++++++++ "); 566 //m_log.Debug(" ++++++++++AFTER+++++++++++++ ");
558 //DumpKnownRegions(); 567 //DumpKnownRegions();