mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 03:06:05 +08:00
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:
@@ -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 +=
|
||||
|
||||
Reference in New Issue
Block a user