diff options
author | Charles Krinke | 2008-06-30 14:09:19 +0000 |
---|---|---|
committer | Charles Krinke | 2008-06-30 14:09:19 +0000 |
commit | 4cb42d4c3596845ab8afd076c5e742de4685df91 (patch) | |
tree | b59e6647b850f04b70ed38ac0d4c17f87acfc3ba /OpenSim/Region/Environment/Scenes | |
parent | Update svn properties. (diff) | |
download | opensim-SC-4cb42d4c3596845ab8afd076c5e742de4685df91.zip opensim-SC-4cb42d4c3596845ab8afd076c5e742de4685df91.tar.gz opensim-SC-4cb42d4c3596845ab8afd076c5e742de4685df91.tar.bz2 opensim-SC-4cb42d4c3596845ab8afd076c5e742de4685df91.tar.xz |
Mantis#1637. Thank you kindly, Melanie for a patch that:
Make each region load it's settings from the database on startup.
No user functionality yet.
Diffstat (limited to '')
-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); |