aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorSean Dague2007-08-25 13:06:09 +0000
committerSean Dague2007-08-25 13:06:09 +0000
commitc35e3b1f3531e9149cad0c9ad13bf3f4954afc90 (patch)
tree79bd0fa8715e666746e63129f9e07ed038673099 /OpenSim/Region
parentSet some default values for "create user" in case anyone just pressing return... (diff)
downloadopensim-SC-c35e3b1f3531e9149cad0c9ad13bf3f4954afc90.zip
opensim-SC-c35e3b1f3531e9149cad0c9ad13bf3f4954afc90.tar.gz
opensim-SC-c35e3b1f3531e9149cad0c9ad13bf3f4954afc90.tar.bz2
opensim-SC-c35e3b1f3531e9149cad0c9ad13bf3f4954afc90.tar.xz
updated to include saving of object flags.
People will need to blow away their databases after this point.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs23
-rw-r--r--OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs3
2 files changed, 17 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index d681f99..e32c196 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -83,7 +83,7 @@ namespace OpenSim.Region.Environment.Scenes
83 set { m_name = value; } 83 set { m_name = value; }
84 } 84 }
85 85
86 protected LLObject.ObjectFlags m_flags = (LLObject.ObjectFlags)32 + 65536 + 131072 + 256 + 4 + 8 + 268435456 + 128 + (uint)LLObject.ObjectFlags.Physics; 86 protected LLObject.ObjectFlags m_flags;
87 public uint ObjectFlags 87 public uint ObjectFlags
88 { 88 {
89 get { return (uint)m_flags; } 89 get { return (uint)m_flags; }
@@ -239,18 +239,23 @@ namespace OpenSim.Region.Environment.Scenes
239 this.Velocity = new LLVector3(0, 0, 0); 239 this.Velocity = new LLVector3(0, 0, 0);
240 this.AngularVelocity = new LLVector3(0, 0, 0); 240 this.AngularVelocity = new LLVector3(0, 0, 0);
241 this.Acceleration = new LLVector3(0, 0, 0); 241 this.Acceleration = new LLVector3(0, 0, 0);
242 242
243 m_inventoryFileName = "taskinventory" + LLUUID.Random().ToString(); 243 m_inventoryFileName = "taskinventory" + LLUUID.Random().ToString();
244 m_folderID = LLUUID.Random(); 244 m_folderID = LLUUID.Random();
245 245
246 //temporary code just so the m_flags field doesn't give a compiler warning 246 m_flags = 0;
247 if (m_flags == LLObject.ObjectFlags.AllowInventoryDrop) 247 m_flags |= LLObject.ObjectFlags.ObjectModify |
248 { 248 LLObject.ObjectFlags.ObjectCopy |
249 249 LLObject.ObjectFlags.ObjectYouOwner |
250 } 250 LLObject.ObjectFlags.Touch |
251 LLObject.ObjectFlags.ObjectMove |
252 LLObject.ObjectFlags.AllowInventoryDrop |
253 LLObject.ObjectFlags.ObjectTransfer |
254 LLObject.ObjectFlags.ObjectOwnerModify;
255
251 ScheduleFullUpdate(); 256 ScheduleFullUpdate();
252 } 257 }
253 258
254 /// <summary> 259 /// <summary>
255 /// Re/create a SceneObjectPart (prim) 260 /// Re/create a SceneObjectPart (prim)
256 /// currently not used, and maybe won't be 261 /// currently not used, and maybe won't be
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
index d711e4b..c1168ec 100644
--- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
+++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
@@ -275,6 +275,7 @@ namespace OpenSim.DataStore.MonoSqliteStorage
275 createCol(prims, "SitName", typeof(System.String)); 275 createCol(prims, "SitName", typeof(System.String));
276 createCol(prims, "TouchName", typeof(System.String)); 276 createCol(prims, "TouchName", typeof(System.String));
277 // permissions 277 // permissions
278 createCol(prims, "ObjectFlags", typeof(System.Int32));
278 createCol(prims, "CreatorID", typeof(System.String)); 279 createCol(prims, "CreatorID", typeof(System.String));
279 createCol(prims, "OwnerID", typeof(System.String)); 280 createCol(prims, "OwnerID", typeof(System.String));
280 createCol(prims, "GroupID", typeof(System.String)); 281 createCol(prims, "GroupID", typeof(System.String));
@@ -379,6 +380,7 @@ namespace OpenSim.DataStore.MonoSqliteStorage
379 prim.SitName = (String)row["SitName"]; 380 prim.SitName = (String)row["SitName"];
380 prim.TouchName = (String)row["TouchName"]; 381 prim.TouchName = (String)row["TouchName"];
381 // permissions 382 // permissions
383 prim.ObjectFlags = Convert.ToUInt32(row["ObjectFlags"]);
382 prim.CreatorID = new LLUUID((String)row["CreatorID"]); 384 prim.CreatorID = new LLUUID((String)row["CreatorID"]);
383 prim.OwnerID = new LLUUID((String)row["OwnerID"]); 385 prim.OwnerID = new LLUUID((String)row["OwnerID"]);
384 prim.GroupID = new LLUUID((String)row["GroupID"]); 386 prim.GroupID = new LLUUID((String)row["GroupID"]);
@@ -439,6 +441,7 @@ namespace OpenSim.DataStore.MonoSqliteStorage
439 row["SitName"] = prim.SitName; 441 row["SitName"] = prim.SitName;
440 row["TouchName"] = prim.TouchName; 442 row["TouchName"] = prim.TouchName;
441 // permissions 443 // permissions
444 row["ObjectFlags"] = prim.ObjectFlags;
442 row["CreatorID"] = prim.CreatorID; 445 row["CreatorID"] = prim.CreatorID;
443 row["OwnerID"] = prim.OwnerID; 446 row["OwnerID"] = prim.OwnerID;
444 row["GroupID"] = prim.GroupID; 447 row["GroupID"] = prim.GroupID;