aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
index 6e8c22d..dcf06fe 100644
--- a/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
+++ b/OpenSim/Region/Storage/OpenSim.DataStore.MonoSqlite/MonoSqliteDataStore.cs
@@ -457,6 +457,22 @@ namespace OpenSim.DataStore.MonoSqliteStorage
457 { 457 {
458 List<SceneObjectGroup> retvals = new List<SceneObjectGroup>(); 458 List<SceneObjectGroup> retvals = new List<SceneObjectGroup>();
459 459
460 DataTable prims = ds.Tables["prims"];
461 DataTable shapes = ds.Tables["primshapes"];
462
463 // This only supports 1 prim per SceneObjectGroup. Need to fix later
464 foreach (DataRow primRow in prims.Rows)
465 {
466 SceneObjectGroup group = new SceneObjectGroup();
467 SceneObjectPart prim = buildPrim(primRow);
468 DataRow shapeRow = shapes.Rows.Find(prim.UUID);
469 if (shapeRow != null) {
470 prim.Shape = buildShape(shapeRow);
471 }
472 group.Children.Add(prim.UUID, prim);
473 retvals.Add(group);
474 }
475
460 MainLog.Instance.Verbose("DATASTORE", "Sqlite - LoadObjects found " + " objects"); 476 MainLog.Instance.Verbose("DATASTORE", "Sqlite - LoadObjects found " + " objects");
461 477
462 return retvals; 478 return retvals;