diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-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 0eeb22a..c581b5f 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -5218,18 +5218,16 @@ namespace OpenSim.Region.Framework.Scenes | |||
5218 | return offsets.ToArray(); | 5218 | return offsets.ToArray(); |
5219 | } | 5219 | } |
5220 | 5220 | ||
5221 | /// <summary> | ||
5222 | /// Regenerate the maptile for this scene. | ||
5223 | /// </summary> | ||
5224 | /// <param name="sender"></param> | ||
5225 | /// <param name="e"></param> | ||
5221 | public void RegenerateMaptile(object sender, ElapsedEventArgs e) | 5226 | public void RegenerateMaptile(object sender, ElapsedEventArgs e) |
5222 | { | 5227 | { |
5223 | IWorldMapModule mapModule = RequestModuleInterface<IWorldMapModule>(); | 5228 | IWorldMapModule mapModule = RequestModuleInterface<IWorldMapModule>(); |
5224 | if (mapModule != null) | 5229 | if (mapModule != null) |
5225 | { | ||
5226 | mapModule.GenerateMaptile(); | 5230 | mapModule.GenerateMaptile(); |
5227 | |||
5228 | string error = GridService.RegisterRegion(RegionInfo.ScopeID, new GridRegion(RegionInfo)); | ||
5229 | |||
5230 | if (error != String.Empty) | ||
5231 | throw new Exception(error); | ||
5232 | } | ||
5233 | } | 5231 | } |
5234 | 5232 | ||
5235 | // public void CleanDroppedAttachments() | 5233 | // public void CleanDroppedAttachments() |