diff options
author | Diva Canto | 2012-04-27 11:05:40 -0700 |
---|---|---|
committer | Diva Canto | 2012-04-27 11:05:40 -0700 |
commit | 9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c (patch) | |
tree | 1bbb171db676f32e279f8c36f1db578d0c2d01dd /OpenSim/Region | |
parent | MapImage security issue. Compare strings instead of IPAddresses. (diff) | |
download | opensim-SC_OLD-9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c.zip opensim-SC_OLD-9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c.tar.gz opensim-SC_OLD-9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c.tar.bz2 opensim-SC_OLD-9bc94c502a8e30b0d727f15d0e4b4bb22d163d6c.tar.xz |
MapImageService: changed the event at which the map tiles are uploaded, because they were being uploaded before the region was registered with the grid
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs index 6d3ace9..322a9f8 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs | |||
@@ -146,9 +146,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage | |||
146 | lock (m_scenes) | 146 | lock (m_scenes) |
147 | m_scenes[scene.RegionInfo.RegionID] = scene; | 147 | m_scenes[scene.RegionInfo.RegionID] = scene; |
148 | 148 | ||
149 | scene.EventManager.OnPrimsLoaded += new EventManager.PrimsLoaded(EventManager_OnPrimsLoaded); | 149 | scene.EventManager.OnLoginsEnabled += OnLoginsEnabled; |
150 | } | 150 | } |
151 | 151 | ||
152 | |||
152 | ///<summary> | 153 | ///<summary> |
153 | /// | 154 | /// |
154 | ///</summary> | 155 | ///</summary> |
@@ -163,9 +164,17 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage | |||
163 | 164 | ||
164 | #endregion ISharedRegionModule | 165 | #endregion ISharedRegionModule |
165 | 166 | ||
166 | void EventManager_OnPrimsLoaded(Scene s) | 167 | void OnLoginsEnabled(string regionName) |
167 | { | 168 | { |
168 | UploadMapTile(s); | 169 | Scene scene = null; |
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); | ||
169 | } | 178 | } |
170 | 179 | ||
171 | 180 | ||