diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLRegionData.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs index effe10b..1daefe4 100644 --- a/OpenSim/Data/MySQL/MySQLRegionData.cs +++ b/OpenSim/Data/MySQL/MySQLRegionData.cs | |||
@@ -981,6 +981,9 @@ namespace OpenSim.Data.MySQL | |||
981 | createCol(prims, "ClickAction", typeof (Byte)); | 981 | createCol(prims, "ClickAction", typeof (Byte)); |
982 | createCol(prims, "Material", typeof (Byte)); | 982 | createCol(prims, "Material", typeof (Byte)); |
983 | 983 | ||
984 | createCol(prims, "CollisionSound", typeof(String)); | ||
985 | createCol(prims, "CollisionSoundVolume", typeof(Double)); | ||
986 | |||
984 | // Add in contraints | 987 | // Add in contraints |
985 | prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]}; | 988 | prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]}; |
986 | 989 | ||
@@ -1271,6 +1274,9 @@ namespace OpenSim.Data.MySQL | |||
1271 | if (!row.IsNull("ClickAction")) | 1274 | if (!row.IsNull("ClickAction")) |
1272 | prim.ClickAction = Convert.ToByte(row["ClickAction"]); | 1275 | prim.ClickAction = Convert.ToByte(row["ClickAction"]); |
1273 | 1276 | ||
1277 | prim.CollisionSound = new UUID(row["CollisionSound"].ToString()); | ||
1278 | prim.CollisionSoundVolume = Convert.ToSingle(row["CollisionSoundVolume"]); | ||
1279 | |||
1274 | return prim; | 1280 | return prim; |
1275 | } | 1281 | } |
1276 | 1282 | ||
@@ -1589,6 +1595,9 @@ namespace OpenSim.Data.MySQL | |||
1589 | row["ClickAction"] = clickAction; | 1595 | row["ClickAction"] = clickAction; |
1590 | 1596 | ||
1591 | row["Material"] = prim.Material; | 1597 | row["Material"] = prim.Material; |
1598 | |||
1599 | row["CollisionSound"] = prim.CollisionSound.ToString(); | ||
1600 | row["CollisionSoundVolume"] = prim.CollisionSoundVolume; | ||
1592 | } | 1601 | } |
1593 | 1602 | ||
1594 | /// <summary> | 1603 | /// <summary> |