From 8d2d69dc887abfc30a0bdd8fcbd4792d6add8409 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sat, 8 Mar 2008 22:52:17 +0000 Subject: Thank you kindly Grumly57 for a patch to solve: Grass type is not persisted. Try to rez some grass several time to have different random grass types around, then immediately move a couple of them. Or restart the sim and logon again. You'll see all grass types reverted to a dull default one :-) --- OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql | 1 + OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs | 3 +++ 2 files changed, 4 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql b/OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql index 45a36fa..15f3d9f 100644 --- a/OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql +++ b/OpenSim/Framework/Data.SQLite/Resources/001_RegionStore.sql @@ -72,6 +72,7 @@ CREATE TABLE primshapes(UUID varchar(255) primary key, ProfileEnd integer, ProfileCurve integer, ProfileHollow integer, + State integer, Texture blob, ExtraParams blob); diff --git a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs index ce9a3ef..d41dd55 100644 --- a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs +++ b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs @@ -685,6 +685,7 @@ namespace OpenSim.Framework.Data.SQLite createCol(shapes, "ProfileEnd", typeof (Int32)); createCol(shapes, "ProfileCurve", typeof (Int32)); createCol(shapes, "ProfileHollow", typeof (Int32)); + createCol(shapes, "State", typeof(Int32)); // text TODO: this isn't right, but I'm not sure the right // way to specify this as a blob atm createCol(shapes, "Texture", typeof (Byte[])); @@ -1170,6 +1171,7 @@ namespace OpenSim.Framework.Data.SQLite s.ProfileEnd = Convert.ToUInt16(row["ProfileEnd"]); s.ProfileCurve = Convert.ToByte(row["ProfileCurve"]); s.ProfileHollow = Convert.ToUInt16(row["ProfileHollow"]); + s.State = Convert.ToByte(row["State"]); // text TODO: this isn't right] = but I'm not sure the right // way to specify this as a blob atm @@ -1227,6 +1229,7 @@ namespace OpenSim.Framework.Data.SQLite row["ProfileEnd"] = s.ProfileEnd; row["ProfileCurve"] = s.ProfileCurve; row["ProfileHollow"] = s.ProfileHollow; + row["State"] = s.State; row["Texture"] = s.TextureEntry; row["ExtraParams"] = s.ExtraParams; -- cgit v1.1