* Primitives are now loaded from Datastore during scene initialisation.

afrisby
Adam Frisby 2007-07-15 18:49:11 +00:00
parent e44c9007ec
commit 61446c0cd8
1 changed files with 9 additions and 0 deletions

View File

@ -146,6 +146,15 @@ namespace OpenSim.Region.Environment.Scenes
Avatars = new Dictionary<LLUUID, ScenePresence>(); Avatars = new Dictionary<LLUUID, ScenePresence>();
Prims = new Dictionary<LLUUID, SceneObject>(); Prims = new Dictionary<LLUUID, SceneObject>();
MainLog.Instance.Verbose("World.cs - loading objects from datastore");
List<SceneObject> PrimsFromDB = storageManager.DataStore.LoadObjects();
foreach (SceneObject prim in PrimsFromDB)
{
Prims.Add(prim.uuid, prim);
}
MainLog.Instance.Verbose("World.cs - loaded " + PrimsFromDB.Count.ToString() + " object(s)");
MainLog.Instance.Verbose("World.cs - creating LandMap"); MainLog.Instance.Verbose("World.cs - creating LandMap");
Terrain = new TerrainEngine(); Terrain = new TerrainEngine();