mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Mantis#2656. Thank you kindly, Nlin for a patch that:
Attached patch implements llCollisionSound. Thanks T. Sado.
This commit is contained in:
@@ -981,6 +981,9 @@ namespace OpenSim.Data.MySQL
|
||||
createCol(prims, "ClickAction", typeof (Byte));
|
||||
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"]};
|
||||
|
||||
@@ -1271,6 +1274,9 @@ namespace OpenSim.Data.MySQL
|
||||
if (!row.IsNull("ClickAction"))
|
||||
prim.ClickAction = Convert.ToByte(row["ClickAction"]);
|
||||
|
||||
prim.CollisionSound = new UUID(row["CollisionSound"].ToString());
|
||||
prim.CollisionSoundVolume = Convert.ToSingle(row["CollisionSoundVolume"]);
|
||||
|
||||
return prim;
|
||||
}
|
||||
|
||||
@@ -1589,6 +1595,9 @@ namespace OpenSim.Data.MySQL
|
||||
row["ClickAction"] = clickAction;
|
||||
|
||||
row["Material"] = prim.Material;
|
||||
|
||||
row["CollisionSound"] = prim.CollisionSound.ToString();
|
||||
row["CollisionSoundVolume"] = prim.CollisionSoundVolume;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
6
OpenSim/Data/MySQL/Resources/022_RegionStore.sql
Normal file
6
OpenSim/Data/MySQL/Resources/022_RegionStore.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
BEGIN;
|
||||
|
||||
ALTER TABLE prims ADD COLUMN CollisionSound char(36) not null default '00000000-0000-0000-0000-000000000000';
|
||||
ALTER TABLE prims ADD COLUMN CollisionSoundVolume float not null default 0.0;
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user