Pass entire scene object in OnLoginsEnabled event rather than just the region name.

This saves listeners from having to re-retrieve the scene from their own lists, which won't work anyway if multiple regions with the same name have been allowed
This commit is contained in:
Justin Clark-Casey (justincc)
2012-07-18 21:29:12 +01:00
parent 742ad5eb93
commit 6460e587c4
4 changed files with 22 additions and 24 deletions

View File

@@ -164,20 +164,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
#endregion ISharedRegionModule
void OnLoginsEnabled(string regionName)
void OnLoginsEnabled(IScene scene)
{
Scene scene = null;
foreach (Scene s in m_scenes.Values)
if (s.RegionInfo.RegionName == regionName)
{
scene = s;
break;
}
if (scene != null)
UploadMapTile(scene);
UploadMapTile(scene);
}
///<summary>
///
///</summary>