aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-07-18 21:29:12 +0100
committerJustin Clark-Casey (justincc)2012-07-18 21:29:12 +0100
commit6460e587c470361173291337ad222f48c13a10ce (patch)
tree30a15cc14b348793a16a1d4f121b64059659a6f5 /OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-6460e587c470361173291337ad222f48c13a10ce.zip
opensim-SC_OLD-6460e587c470361173291337ad222f48c13a10ce.tar.gz
opensim-SC_OLD-6460e587c470361173291337ad222f48c13a10ce.tar.bz2
opensim-SC_OLD-6460e587c470361173291337ad222f48c13a10ce.tar.xz
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
Diffstat (limited to 'OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage')
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs13
1 files changed, 2 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
index 322a9f8..9033460 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
@@ -164,20 +164,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
164 164
165 #endregion ISharedRegionModule 165 #endregion ISharedRegionModule
166 166
167 void OnLoginsEnabled(string regionName) 167 void OnLoginsEnabled(IScene scene)
168 { 168 {
169 Scene scene = null; 169 UploadMapTile(scene);
170 foreach (Scene s in m_scenes.Values)
171 if (s.RegionInfo.RegionName == regionName)
172 {
173 scene = s;
174 break;
175 }
176 if (scene != null)
177 UploadMapTile(scene);
178 } 170 }
179 171
180
181 ///<summary> 172 ///<summary>
182 /// 173 ///
183 ///</summary> 174 ///</summary>