diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 291a7ae..12c909b 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -264,6 +264,14 @@ namespace OpenSim.Region.Environment.Scenes | |||
264 | m_eventManager = new EventManager(); | 264 | m_eventManager = new EventManager(); |
265 | m_externalChecks = new SceneExternalChecks(this); | 265 | m_externalChecks = new SceneExternalChecks(this); |
266 | 266 | ||
267 | // Load region settings | ||
268 | // First try database | ||
269 | m_regInfo.RegionSettings = m_storageManager.DataStore.LoadRegionSettings(m_regInfo.RegionID); | ||
270 | // If the database access failed, this will create defaults | ||
271 | m_regInfo.RegionSettings.RegionUUID = m_regInfo.RegionID; | ||
272 | // Finally, save the defaults | ||
273 | m_storageManager.DataStore.StoreRegionSettings(m_regInfo.RegionSettings); | ||
274 | |||
267 | //Bind Storage Manager functions to some land manager functions for this scene | 275 | //Bind Storage Manager functions to some land manager functions for this scene |
268 | EventManager.OnLandObjectAdded += | 276 | EventManager.OnLandObjectAdded += |
269 | new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject); | 277 | new EventManager.LandObjectAdded(m_storageManager.DataStore.StoreLandObject); |