Add database persistence for material setting

This commit is contained in:
Melanie Thielker
2008-10-03 12:11:38 +00:00
parent 7f007d8ed0
commit ec47a1bff2
4 changed files with 22 additions and 0 deletions

View File

@@ -859,6 +859,8 @@ namespace OpenSim.Data.SQLite
// click action
createCol(prims, "ClickAction", typeof (Byte));
createCol(prims, "Material", typeof(Int32));
// Add in contraints
prims.PrimaryKey = new DataColumn[] {prims.Columns["UUID"]};
@@ -1213,6 +1215,8 @@ namespace OpenSim.Data.SQLite
prim.SalePrice = Convert.ToInt32(row["SalePrice"]);
prim.ObjectSaleType = Convert.ToByte(row["SaleType"]);
prim.Material = Convert.ToByte(row["Material"]);
return prim;
}
@@ -1529,6 +1533,8 @@ namespace OpenSim.Data.SQLite
// click action
row["ClickAction"] = prim.ClickAction;
row["SalePrice"] = prim.SalePrice;
}
/// <summary>