aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorlbsa712009-02-25 11:01:38 +0000
committerlbsa712009-02-25 11:01:38 +0000
commit41c883ea47105d04087fb173047b6cd7e17be40d (patch)
tree6a364760732d78c3cca79caf01973d5c34317684 /OpenSim/Data
parentAllow /* C-style comments */ in LSL scripts. (diff)
downloadopensim-SC_OLD-41c883ea47105d04087fb173047b6cd7e17be40d.zip
opensim-SC_OLD-41c883ea47105d04087fb173047b6cd7e17be40d.tar.gz
opensim-SC_OLD-41c883ea47105d04087fb173047b6cd7e17be40d.tar.bz2
opensim-SC_OLD-41c883ea47105d04087fb173047b6cd7e17be40d.tar.xz
* Refactored SOP.FolderID weirdness by removing calls to empty setter. YEs, I do realize the setter has to be there for legacy reasons, but since the calls will never acually DO anyhting, I'm removing them.
* So, SOP.FolderID is actually a cruft field that should be removed.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLRegionData.cs5
-rw-r--r--OpenSim/Data/MySQL/MySQLRegionData.cs4
-rw-r--r--OpenSim/Data/SQLite/SQLiteRegionData.cs7
3 files changed, 1 insertions, 15 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLRegionData.cs b/OpenSim/Data/MSSQL/MSSQLRegionData.cs
index d9565d4..f284c8d 100644
--- a/OpenSim/Data/MSSQL/MSSQLRegionData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLRegionData.cs
@@ -122,10 +122,7 @@ namespace OpenSim.Data.MSSQL
122 sceneObjectPart.Shape = PrimitiveBaseShape.Default; 122 sceneObjectPart.Shape = PrimitiveBaseShape.Default;
123 else 123 else
124 sceneObjectPart.Shape = BuildShape(reader); 124 sceneObjectPart.Shape = BuildShape(reader);
125 125
126 // A relic from when we we thought that prims contained folder objects. In
127 // reality, prim == folder
128 sceneObjectPart.FolderID = sceneObjectPart.UUID;
129 sceneObjectParts.Add(sceneObjectPart); 126 sceneObjectParts.Add(sceneObjectPart);
130 127
131 UUID groupID = new UUID((Guid)reader["SceneGroupID"]); 128 UUID groupID = new UUID((Guid)reader["SceneGroupID"]);
diff --git a/OpenSim/Data/MySQL/MySQLRegionData.cs b/OpenSim/Data/MySQL/MySQLRegionData.cs
index 4b07ed6..e39b185 100644
--- a/OpenSim/Data/MySQL/MySQLRegionData.cs
+++ b/OpenSim/Data/MySQL/MySQLRegionData.cs
@@ -441,10 +441,6 @@ namespace OpenSim.Data.MySQL
441 else 441 else
442 prim.Shape = BuildShape(reader); 442 prim.Shape = BuildShape(reader);
443 443
444 prim.FolderID = prim.UUID; // A relic from when we
445 // we thought prims contained
446 // folder objects. In
447 // reality, prim == folder
448 prims.Add(prim); 444 prims.Add(prim);
449 445
450 UUID groupID = new UUID(reader["SceneGroupID"].ToString()); 446 UUID groupID = new UUID(reader["SceneGroupID"].ToString());
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs
index 7ec4ceb..2d0f6d8 100644
--- a/OpenSim/Data/SQLite/SQLiteRegionData.cs
+++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs
@@ -516,13 +516,6 @@ namespace OpenSim.Data.SQLite
516 } 516 }
517 517
518 prim.Inventory.RestoreInventoryItems(inventory); 518 prim.Inventory.RestoreInventoryItems(inventory);
519
520 // XXX A nasty little hack to recover the folder id for the prim (which is currently stored in
521 // every item). This data should really be stored in the prim table itself.
522 if (dbItemRows.Length > 0)
523 {
524 prim.FolderID = inventory[0].ParentID;
525 }
526 } 519 }
527 520
528 /// <summary> 521 /// <summary>