diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index f10789b..47450ed 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -5017,18 +5017,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
5017 | return offsets.ToArray(); | 5017 | return offsets.ToArray(); |
5018 | } | 5018 | } |
5019 | 5019 | ||
5020 | /// <summary> | ||
5021 | /// Regenerate the maptile for this scene. | ||
5022 | /// </summary> | ||
5023 | /// <param name="sender"></param> | ||
5024 | /// <param name="e"></param> | ||
5020 | public void RegenerateMaptile(object sender, ElapsedEventArgs e) | 5025 | public void RegenerateMaptile(object sender, ElapsedEventArgs e) |
5021 | { | 5026 | { |
5022 | IWorldMapModule mapModule = RequestModuleInterface<IWorldMapModule>(); | 5027 | IWorldMapModule mapModule = RequestModuleInterface<IWorldMapModule>(); |
5023 | if (mapModule != null) | 5028 | if (mapModule != null) |
5024 | { | ||
5025 | mapModule.GenerateMaptile(); | 5029 | mapModule.GenerateMaptile(); |
5026 | |||
5027 | string error = GridService.RegisterRegion(RegionInfo.ScopeID, new GridRegion(RegionInfo)); | ||
5028 | |||
5029 | if (error != String.Empty) | ||
5030 | throw new Exception(error); | ||
5031 | } | ||
5032 | } | 5030 | } |
5033 | 5031 | ||
5034 | // This method is called across the simulation connector to | 5032 | // This method is called across the simulation connector to |