diff options
author | Justin Clarke Casey | 2008-11-10 20:04:55 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-10 20:04:55 +0000 |
commit | 0e180b0ad30d5f468be1c239865688449b8747cc (patch) | |
tree | 4d442315d268836641cb2b10e6937a0d308bdc18 /OpenSim/Data/SQLite/SQLiteRegionData.cs | |
parent | Removed some debug output I forgot to remove... (diff) | |
download | opensim-SC-0e180b0ad30d5f468be1c239865688449b8747cc.zip opensim-SC-0e180b0ad30d5f468be1c239865688449b8747cc.tar.gz opensim-SC-0e180b0ad30d5f468be1c239865688449b8747cc.tar.bz2 opensim-SC-0e180b0ad30d5f468be1c239865688449b8747cc.tar.xz |
* refactor: Expose SOG.SetRootPart for outsiders to use rather than setting RootPart and adding the part separately
* Make RootPart read only
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteRegionData.cs')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteRegionData.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index 93d9406..cc3ad06 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs | |||
@@ -436,8 +436,8 @@ namespace OpenSim.Data.SQLite | |||
436 | "[REGION DB]: No shape found for prim in storage, so setting default box shape"); | 436 | "[REGION DB]: No shape found for prim in storage, so setting default box shape"); |
437 | prim.Shape = PrimitiveBaseShape.Default; | 437 | prim.Shape = PrimitiveBaseShape.Default; |
438 | } | 438 | } |
439 | group.AddPart(prim); | 439 | |
440 | group.RootPart = prim; | 440 | group.SetRootPart(prim); |
441 | createdObjects.Add(group.UUID, group); | 441 | createdObjects.Add(group.UUID, group); |
442 | retvals.Add(group); | 442 | retvals.Add(group); |
443 | LoadItems(prim); | 443 | LoadItems(prim); |
@@ -1102,8 +1102,7 @@ namespace OpenSim.Data.SQLite | |||
1102 | // sop.TouchName = ""; | 1102 | // sop.TouchName = ""; |
1103 | // sop.UUID = UUID.Random(); | 1103 | // sop.UUID = UUID.Random(); |
1104 | // sop.Shape = PrimitiveBaseShape.Default; | 1104 | // sop.Shape = PrimitiveBaseShape.Default; |
1105 | // sog.AddPart(sop); | 1105 | // sog.SetRootPart(sop); |
1106 | // sog.RootPart = sop; | ||
1107 | // Add breakpoint in above line. Check sop fields. | 1106 | // Add breakpoint in above line. Check sop fields. |
1108 | 1107 | ||
1109 | // TODO: this doesn't work yet because something more | 1108 | // TODO: this doesn't work yet because something more |