aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL
diff options
context:
space:
mode:
authorMelanie2010-11-03 02:31:43 +0000
committerMelanie2010-11-03 02:31:43 +0000
commit6c3b7617b0356f093ef2730f1c517d6228997984 (patch)
treedfe891e7969aca22c0480877988ff3a8ad3d7d77 /OpenSim/Data/MySQL
parentWhen LightShare is enabled, the standard day cycle is bypassed and replaced by (diff)
downloadopensim-SC_OLD-6c3b7617b0356f093ef2730f1c517d6228997984.zip
opensim-SC_OLD-6c3b7617b0356f093ef2730f1c517d6228997984.tar.gz
opensim-SC_OLD-6c3b7617b0356f093ef2730f1c517d6228997984.tar.bz2
opensim-SC_OLD-6c3b7617b0356f093ef2730f1c517d6228997984.tar.xz
Add lsClearWindlightScene() to the lightshare module to remove WL settings
from a region and allow normal day cycles to be reestablished
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index b53c67b..ae78814 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -965,6 +965,21 @@ namespace OpenSim.Data.MySQL
965 } 965 }
966 } 966 }
967 967
968 public void RemoveRegionWindlightSettings(UUID regionID)
969 {
970 using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
971 {
972 dbcon.Open();
973
974 using (MySqlCommand cmd = dbcon.CreateCommand())
975 {
976 cmd.CommandText = "delete from `regionwindlight` where `region_id`=?regionID";
977 cmd.Parameters.AddWithValue("?regionID", regionID.ToString());
978 ExecuteNonQuery(cmd);
979 }
980 }
981 }
982
968 public void StoreRegionSettings(RegionSettings rs) 983 public void StoreRegionSettings(RegionSettings rs)
969 { 984 {
970 lock (m_dbLock) 985 lock (m_dbLock)