Mantis#2658. Thank you kindly, StrawberryFride for a patch that:
Keeping up with MySQL and SQLite. Small code changes and another resource file to add.0.6.1-post-fixes
parent
14f3ac1440
commit
b0ee8fc271
|
@ -1048,6 +1048,9 @@ VALUES
|
|||
if (!primRow.IsNull("ClickAction"))
|
||||
prim.ClickAction = Convert.ToByte(primRow["ClickAction"]);
|
||||
|
||||
prim.CollisionSound = new UUID(primRow["CollisionSound"].ToString());
|
||||
prim.CollisionSoundVolume = Convert.ToSingle(primRow["CollisionSoundVolume"]);
|
||||
|
||||
return prim;
|
||||
}
|
||||
|
||||
|
@ -1419,6 +1422,9 @@ VALUES
|
|||
row["ClickAction"] = clickAction;
|
||||
|
||||
row["Material"] = prim.Material;
|
||||
|
||||
row["CollisionSound"] = prim.CollisionSound.ToString();
|
||||
row["CollisionSoundVolume"] = prim.CollisionSoundVolume;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
BEGIN TRANSACTION
|
||||
|
||||
ALTER TABLE prims ADD CollisionSound char(36) not null default '00000000-0000-0000-0000-000000000000'
|
||||
ALTER TABLE prims ADD CollisionSoundVolume float not null default 0.0
|
||||
|
||||
COMMIT
|
Loading…
Reference in New Issue