mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user