diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 475d775..1b275b0 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1504,7 +1504,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1504 | { | 1504 | { |
1505 | m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); | 1505 | m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); |
1506 | } | 1506 | } |
1507 | 1507 | ||
1508 | public void StoreWindlightProfile(RegionMeta7WindlightData wl) | 1508 | public void StoreWindlightProfile(RegionMeta7WindlightData wl) |
1509 | { | 1509 | { |
1510 | m_regInfo.WindlightSettings = wl; | 1510 | m_regInfo.WindlightSettings = wl; |
@@ -1512,6 +1512,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
1512 | m_eventManager.TriggerOnSaveNewWindlightProfile(); | 1512 | m_eventManager.TriggerOnSaveNewWindlightProfile(); |
1513 | } | 1513 | } |
1514 | 1514 | ||
1515 | public void LoadWindlightProfile() | ||
1516 | { | ||
1517 | m_regInfo.WindlightSettings = m_storageManager.DataStore.LoadRegionWindlightSettings(RegionInfo.RegionID); | ||
1518 | m_eventManager.TriggerOnSaveNewWindlightProfile(); | ||
1519 | } | ||
1520 | |||
1515 | /// <summary> | 1521 | /// <summary> |
1516 | /// Loads the World heightmap | 1522 | /// Loads the World heightmap |
1517 | /// </summary> | 1523 | /// </summary> |