Don't register a region twice on both official registration and maptile regeneration.
Maptile storage appears orthogonal to region registrationiar_mods
parent
f72c4bdba5
commit
01ae916bad
|
@ -5017,18 +5017,16 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
return offsets.ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Regenerate the maptile for this scene.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void RegenerateMaptile(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
IWorldMapModule mapModule = RequestModuleInterface<IWorldMapModule>();
|
||||
if (mapModule != null)
|
||||
{
|
||||
mapModule.GenerateMaptile();
|
||||
|
||||
string error = GridService.RegisterRegion(RegionInfo.ScopeID, new GridRegion(RegionInfo));
|
||||
|
||||
if (error != String.Empty)
|
||||
throw new Exception(error);
|
||||
}
|
||||
}
|
||||
|
||||
// This method is called across the simulation connector to
|
||||
|
|
|
@ -129,7 +129,9 @@ namespace OpenSim.Services.Connectors
|
|||
|
||||
}
|
||||
else
|
||||
m_log.DebugFormat("[MAP IMAGE CONNECTOR]: RegisterRegion received null reply");
|
||||
{
|
||||
m_log.DebugFormat("[MAP IMAGE CONNECTOR]: Map post received null reply");
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -156,6 +156,7 @@ namespace OpenSim.Services.GridService
|
|||
regionInfos.RegionID, regionInfos.RegionLocX, regionInfos.RegionLocY, scopeID);
|
||||
return "Region overlaps another region";
|
||||
}
|
||||
|
||||
if ((region != null) && (region.RegionID == regionInfos.RegionID) &&
|
||||
((region.posX != regionInfos.RegionLocX) || (region.posY != regionInfos.RegionLocY)))
|
||||
{
|
||||
|
|
|
@ -138,6 +138,8 @@ namespace OpenSim.Services.MapImageService
|
|||
|
||||
public byte[] GetMapTile(string fileName, out string format)
|
||||
{
|
||||
// m_log.DebugFormat("[MAP IMAGE SERVICE]: Getting map tile {0}", fileName);
|
||||
|
||||
format = ".jpg";
|
||||
string fullName = Path.Combine(m_TilesStoragePath, fileName);
|
||||
if (File.Exists(fullName))
|
||||
|
|
Loading…
Reference in New Issue