Mantis#1639. Thank you, Melanie for a patch that:

Reads estate_settings.xml and populates the database from it. 
If there is no record, just passes the defaults to the application.
This commit is contained in:
Charles Krinke
2008-07-01 02:16:58 +00:00
parent 32ca6b6035
commit bf34f65125
3 changed files with 213 additions and 5 deletions

View File

@@ -267,10 +267,10 @@ namespace OpenSim.Region.Environment.Scenes
// Load region settings
// First try database
m_regInfo.RegionSettings = m_storageManager.DataStore.LoadRegionSettings(m_regInfo.RegionID);
// If the database access failed, this will create defaults
m_regInfo.RegionSettings.RegionUUID = m_regInfo.RegionID;
// Finally, save the defaults
m_storageManager.DataStore.StoreRegionSettings(m_regInfo.RegionSettings);
// Hook up save event
m_regInfo.RegionSettings.OnSave += m_storageManager.DataStore.StoreRegionSettings;
//Bind Storage Manager functions to some land manager functions for this scene
EventManager.OnLandObjectAdded +=