mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Mantis#2656. Thank you kindly, Nlin for a patch that:
Attached patch implements llCollisionSound. Thanks T. Sado.
This commit is contained in:
@@ -877,6 +877,9 @@ namespace OpenSim.Data.SQLite
|
||||
|
||||
createCol(prims, "Material", typeof(Byte));
|
||||
|
||||
createCol(prims, "CollisionSound", typeof(String));
|
||||
createCol(prims, "CollisionSoundVolume", typeof(Double));
|
||||
|
||||
// Add in contraints
|
||||
prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]};
|
||||
|
||||
@@ -1237,6 +1240,10 @@ namespace OpenSim.Data.SQLite
|
||||
prim.ObjectSaleType = Convert.ToByte(row["SaleType"]);
|
||||
|
||||
prim.Material = Convert.ToByte(row["Material"]);
|
||||
|
||||
prim.CollisionSound = new UUID(row["CollisionSound"].ToString());
|
||||
prim.CollisionSoundVolume = Convert.ToSingle(row["CollisionSoundVolume"]);
|
||||
|
||||
return prim;
|
||||
}
|
||||
|
||||
@@ -1564,6 +1571,9 @@ namespace OpenSim.Data.SQLite
|
||||
|
||||
row["SalePrice"] = prim.SalePrice;
|
||||
row["Material"] = prim.Material;
|
||||
|
||||
row["CollisionSound"] = prim.CollisionSound.ToString();
|
||||
row["CollisionSoundVolume"] = prim.CollisionSoundVolume;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user