Add lsClearWindlightScene() to the lightshare module to remove WL settings

from a region and allow normal day cycles to be reestablished
This commit is contained in:
Melanie
2010-11-03 02:31:43 +00:00
parent 4ab9d37a8e
commit 6c3b7617b0
12 changed files with 64 additions and 1 deletions

View File

@@ -965,6 +965,21 @@ namespace OpenSim.Data.MySQL
}
}
public void RemoveRegionWindlightSettings(UUID regionID)
{
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
{
dbcon.Open();
using (MySqlCommand cmd = dbcon.CreateCommand())
{
cmd.CommandText = "delete from `regionwindlight` where `region_id`=?regionID";
cmd.Parameters.AddWithValue("?regionID", regionID.ToString());
ExecuteNonQuery(cmd);
}
}
}
public void StoreRegionSettings(RegionSettings rs)
{
lock (m_dbLock)