mirror of
https://github.com/opensim/opensim.git
synced 2026-07-08 05:36:27 +08:00
Thanks, nlin, for a patch implementing persistence for "When Left Clicked"
object property. Fix issue 2149.
This commit is contained in:
@@ -941,6 +941,7 @@ namespace OpenSim.Data.MySQL
|
||||
createCol(prims, "SalePrice", typeof(Int32));
|
||||
createCol(prims, "SaleType", typeof (Int16));
|
||||
|
||||
createCol(prims, "ClickAction", typeof (Byte));
|
||||
|
||||
// Add in contraints
|
||||
prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]};
|
||||
@@ -1225,6 +1226,8 @@ namespace OpenSim.Data.MySQL
|
||||
prim.SalePrice = Convert.ToInt32(row["SalePrice"]);
|
||||
prim.ObjectSaleType = Convert.ToByte(row["SaleType"]);
|
||||
|
||||
prim.ClickAction = Convert.ToByte(row["ClickAction"]);
|
||||
|
||||
return prim;
|
||||
}
|
||||
|
||||
@@ -1532,6 +1535,8 @@ namespace OpenSim.Data.MySQL
|
||||
row["SalePrice"] = prim.SalePrice;
|
||||
row["SaleType"] = Convert.ToInt16(prim.ObjectSaleType);
|
||||
|
||||
byte clickAction = prim.ClickAction;
|
||||
row["ClickAction"] = clickAction;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user